0
0
mirror of https://github.com/termux/termux-packages.git synced 2024-12-04 18:45:52 +00:00
termux-packages/packages/libaml/0001-no-pthread-cancel.patch
2023-10-20 03:20:08 +08:00

13 lines
284 B
Diff

--- a/src/thread-pool.c
+++ b/src/thread-pool.c
@@ -97,7 +97,9 @@
sigdelset(&ss, SIGCHLD);
pthread_sigmask(SIG_BLOCK, &ss, NULL);
+#ifndef __ANDROID__
pthread_setcancelstate(PTHREAD_CANCEL_DISABLE, NULL);
+#endif
while (1) {
struct default_work* work = dequeue_work();