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:
Ruchi Kandoi 2014-04-23 17:32:55 -07:00
parent 422852ef5c
commit f4362ccdd5

View file

@ -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>