--- 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!");