]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
Fix compilation error when using Android NDK
authorBen Efrati <ben1189@gmail.com>
Mon, 8 Feb 2016 20:07:18 +0000 (22:07 +0200)
committerJaroslav Kysela <perex@perex.cz>
Tue, 9 Feb 2016 07:53:03 +0000 (08:53 +0100)
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

src/wrappers.c

index e96eb75071b9e2d950fbaf4a159daa725ee15631..42cc42541e73d26732f2653e2a869b552e005e20 100644 (file)
@@ -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