diff options
author | Ruchi Kandoi <kandoiruchi@google.com> | 2014-04-23 17:32:55 -0700 |
---|---|---|
committer | Ruchi Kandoi <kandoiruchi@google.com> | 2014-04-24 00:35:46 +0000 |
commit | f4362ccdd513c0c2b6d3bb17a50b0ef114d59557 (patch) | |
tree | 330fe27f0f92936f9e5bc9fa556d6fd73d0f3eaa /libcutils | |
parent | 422852ef5c0c2b0b5e031f80f480486df3d185a0 (diff) | |
download | system_core-f4362ccdd513c0c2b6d3bb17a50b0ef114d59557.zip system_core-f4362ccdd513c0c2b6d3bb17a50b0ef114d59557.tar.gz system_core-f4362ccdd513c0c2b6d3bb17a50b0ef114d59557.tar.bz2 |
Fix build problems caused by commit:
422852ef5c0c2b0b5e031f80f480486df3d185a0 for non-linux hosts.
Change-Id: I00b9c99b9d9d072f19549b3a9970a27e75cd49b7
Signed-off-by: Ruchi Kandoi <kandoiruchi@google.com>
Diffstat (limited to 'libcutils')
-rw-r--r-- | libcutils/sched_policy.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libcutils/sched_policy.c b/libcutils/sched_policy.c index bc49e88..7c65843 100644 --- a/libcutils/sched_policy.c +++ b/libcutils/sched_policy.c @@ -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> |