diff options
| author | Brad Fitzpatrick <bradfitz@android.com> | 2010-05-08 11:51:13 -0700 |
|---|---|---|
| committer | Brad Fitzpatrick <bradfitz@android.com> | 2010-05-08 11:51:13 -0700 |
| commit | 86b121523d7d3634bf5ac07b6e238b36b3e75f0a (patch) | |
| tree | e6f46a7299998414be63de64e916a522234df269 /libcutils | |
| parent | e43c248316d0faa7bdc23de823b068c2aa3520ab (diff) | |
| download | system_core-86b121523d7d3634bf5ac07b6e238b36b3e75f0a.tar.gz system_core-86b121523d7d3634bf5ac07b6e238b36b3e75f0a.tar.bz2 system_core-86b121523d7d3634bf5ac07b6e238b36b3e75f0a.zip | |
fix windows SDK build
Change-Id: I2c563b20197803cafa91214aeff2c06fc0c75580
Diffstat (limited to 'libcutils')
| -rw-r--r-- | libcutils/sched_policy.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/libcutils/sched_policy.c b/libcutils/sched_policy.c index 78e09437..f9c111ed 100644 --- a/libcutils/sched_policy.c +++ b/libcutils/sched_policy.c @@ -22,14 +22,15 @@ #include <string.h> #include <errno.h> #include <fcntl.h> -#include <pthread.h> #define LOG_TAG "SchedPolicy" #include "cutils/log.h" #ifdef HAVE_SCHED_H +#ifdef HAVE_PTHREADS #include <sched.h> +#include <pthread.h> #include <cutils/sched_policy.h> @@ -272,4 +273,5 @@ int set_sched_policy(int tid, SchedPolicy policy) return 0; } +#endif /* HAVE_PTHREADS */ #endif /* HAVE_SCHED_H */ |
