Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
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
  • Loading branch information
BenEfrati authored and perexg committed Feb 9, 2016
1 parent f5b237c commit 6c3d114
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/wrappers.c
Expand Up @@ -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
Expand Down

0 comments on commit 6c3d114

Please sign in to comment.