summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrad Fitzpatrick <bradfitz@android.com>2010-05-10 09:43:55 -0700
committerAndroid Git Automerger <android-git-automerger@android.com>2010-05-10 09:43:55 -0700
commit25ffaff6b1eb8706a893cf255db123d0644b4a7d (patch)
treefbcec986e7cc0918c06f6a7bc435e488142226b0
parent218faa30d547e549c1efbf9bacf23cc56c8bf481 (diff)
parent86b121523d7d3634bf5ac07b6e238b36b3e75f0a (diff)
downloadsystem_core-25ffaff6b1eb8706a893cf255db123d0644b4a7d.zip
system_core-25ffaff6b1eb8706a893cf255db123d0644b4a7d.tar.gz
system_core-25ffaff6b1eb8706a893cf255db123d0644b4a7d.tar.bz2
am 86b12152: fix windows SDK build
Merge commit '86b121523d7d3634bf5ac07b6e238b36b3e75f0a' into froyo-plus-aosp * commit '86b121523d7d3634bf5ac07b6e238b36b3e75f0a': fix windows SDK build
-rw-r--r--libcutils/sched_policy.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/libcutils/sched_policy.c b/libcutils/sched_policy.c
index 78e0943..f9c111e 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 */