Fix build problems caused by commit:
422852ef5c
for non-linux hosts.
Change-Id: I00b9c99b9d9d072f19549b3a9970a27e75cd49b7
Signed-off-by: Ruchi Kandoi <kandoiruchi@google.com>
This commit is contained in:
parent
422852ef5c
commit
f4362ccdd5
1 changed files with 1 additions and 1 deletions
|
@ -26,7 +26,6 @@
|
|||
#include <fcntl.h>
|
||||
#include <cutils/sched_policy.h>
|
||||
#include <cutils/log.h>
|
||||
#include <linux/prctl.h>
|
||||
|
||||
/* Re-map SP_DEFAULT to the system default policy, and leave other values unchanged.
|
||||
* Call this any place a SchedPolicy is used as an input parameter.
|
||||
|
@ -39,6 +38,7 @@ static inline SchedPolicy _policy(SchedPolicy p)
|
|||
|
||||
#if defined(HAVE_ANDROID_OS) && defined(HAVE_SCHED_H) && defined(HAVE_PTHREADS)
|
||||
|
||||
#include <linux/prctl.h>
|
||||
#include <sched.h>
|
||||
#include <pthread.h>
|
||||
|
||||
|
|
Loading…
Reference in a new issue