From: Ben Efrati Date: Thu, 5 May 2016 08:59:16 +0000 (+0300) Subject: Fix compilation error with Android NDK X-Git-Tag: v4.2.1~569 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=581ca236fbca8829b042e6b823fc031e570b6446;p=thirdparty%2Ftvheadend.git Fix compilation error with Android NDK pthread_yield is not implemented on Android NDK. Using sched_yield instead --- diff --git a/src/compat.h b/src/compat.h index 34312207b..45e93f67d 100644 --- a/src/compat.h +++ b/src/compat.h @@ -31,6 +31,9 @@ #ifndef index #define index(...) strchr(__VA_ARGS__) #endif +#ifndef pthread_yield +#define pthread_yield() sched_yield() +#endif #define S_IEXEC S_IXUSR #define epoll_create1(EPOLL_CLOEXEC) epoll_create(n) #define inotify_init1(IN_CLOEXEC) inotify_init()