termux-packages/packages/pika/third-slash-slash-src-posix...

19 lines
416 B
Diff
Raw Normal View History

2022-01-28 22:57:50 +01:00
--- a/third/slash/slash/src/posix.cc
+++ b/third/slash/slash/src/posix.cc
@@ -471,11 +471,15 @@
}
void Pthread_cancel(pthread_t tid) {
+#ifndef __ANDROID__
int rc;
if ((rc = pthread_cancel(tid)) != 0) {
log_err("Pthread_cancel error: %s\n", strerror(rc));
}
+#else
+ log_err("Pthread_cancel error: %s\n", strerror(ENOSYS));
+#endif
}
void Pthread_join(pthread_t tid, void **thread_return) {