Permalink
Browse files

fix windows SDK build

Change-Id: I2c563b20197803cafa91214aeff2c06fc0c75580
  • Loading branch information...
1 parent e43c248 commit 86b121523d7d3634bf5ac07b6e238b36b3e75f0a @bradfitz bradfitz committed May 8, 2010
Showing with 3 additions and 1 deletion.
  1. +3 −1 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 */

0 comments on commit 86b1215

Please sign in to comment.