0
0
mirror of https://github.com/termux/termux-packages.git synced 2024-11-27 06:18:57 +00:00
termux-packages/x11-packages/freerdp/0001-pthread_cancel.patch
2023-10-28 04:57:05 +08:00

12 lines
311 B
Diff

--- a/winpr/libwinpr/thread/thread.c
+++ b/winpr/libwinpr/thread/thread.c
@@ -963,7 +963,7 @@
if (!run_mutex_fkt(pthread_mutex_lock, &thread->mutex))
return FALSE;
-#ifndef ANDROID
+#ifndef __ANDROID__
pthread_cancel(thread->thread);
#else
WLog_ERR(TAG, "Function not supported on this platform!");