Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
References koreader/koreader#1534
- Loading branch information
Showing
3 changed files
with
49 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
diff --git a/libdjvu/DjVuToPS.cpp b/libdjvu/DjVuToPS.cpp | ||
index f72a4c9..51b2ce3 100644 | ||
--- a/libdjvu/DjVuToPS.cpp | ||
+++ b/libdjvu/DjVuToPS.cpp | ||
@@ -59,6 +59,9 @@ | ||
#if NEED_GNUG_PRAGMAS | ||
# pragma implementation | ||
#endif | ||
+#ifdef __ANDROID__ | ||
+# undef UNIX | ||
+#endif | ||
|
||
#include "DjVuToPS.h" | ||
#include "IFFByteStream.h" | ||
diff --git a/libdjvu/GThreads.cpp b/libdjvu/GThreads.cpp | ||
index 0b0fe0a..afb28b0 100644 | ||
--- a/libdjvu/GThreads.cpp | ||
+++ b/libdjvu/GThreads.cpp | ||
@@ -446,10 +449,11 @@ GThread::create(void (*entry)(void*), void *arg) | ||
void | ||
GThread::terminate() | ||
{ | ||
+#ifndef __ANDROID__ | ||
if (xentry || xarg) | ||
pthread_cancel(hthr); | ||
+#endif | ||
} | ||
- | ||
int | ||
GThread::yield() | ||
{ |