From: Ben Efrati Date: Mon, 8 Feb 2016 20:07:18 +0000 (+0200) Subject: Fix compilation error when using Android NDK X-Git-Tag: v4.2.1~1054 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=6c3d11411a0888b1b06d43402b9066dd1a9185a9;p=thirdparty%2Ftvheadend.git Fix compilation error when using Android NDK src/wrappers.c: In function 'tvhtread_renice': src/wrappers.c:210:2: error: #warning "Implement renice for your platform!" [-Werror=cpp] #warning "Implement renice for your platform!" ^ cc1: all warnings being treated as errors --- diff --git a/src/wrappers.c b/src/wrappers.c index e96eb7507..42cc42541 100644 --- a/src/wrappers.c +++ b/src/wrappers.c @@ -206,6 +206,10 @@ tvhtread_renice(int value) pid_t tid; tid = syscall(SYS_gettid); ret = setpriority(PRIO_PROCESS, tid, value); +#elif ENABLE_ANDROID + pid_t tid; + tid = gettid(); + ret = setpriority(PRIO_PROCESS, tid, value); #else #warning "Implement renice for your platform!" #endif