0d713b02b9
Closes https://github.com/termux/termux-packages/issues/5485. Note: I have replaced pthread_cancel() with pthread_exit(NULL) as Android doesn't implement it. Not sure whether package will work correctly. If there will be a bug, someone need to review source and replace pthread_cancel with atomic flags in correct places.
13 lines
380 B
Diff
13 lines
380 B
Diff
diff -uNr djvulibre-3.5.27/libdjvu/GThreads.cpp djvulibre-3.5.27.mod/libdjvu/GThreads.cpp
|
|
--- djvulibre-3.5.27/libdjvu/GThreads.cpp 2015-02-08 19:30:52.000000000 +0000
|
|
+++ djvulibre-3.5.27.mod/libdjvu/GThreads.cpp 2020-11-05 20:29:41.941759223 +0000
|
|
@@ -447,7 +447,7 @@
|
|
GThread::terminate()
|
|
{
|
|
if (xentry || xarg)
|
|
- pthread_cancel(hthr);
|
|
+ pthread_exit(NULL);
|
|
}
|
|
|
|
int
|