summaryrefslogtreecommitdiffstats
path: root/libcutils/sched_policy.c
diff options
context:
space:
mode:
Diffstat (limited to 'libcutils/sched_policy.c')
-rw-r--r--libcutils/sched_policy.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/libcutils/sched_policy.c b/libcutils/sched_policy.c
index 8c7d611..7553090 100644
--- a/libcutils/sched_policy.c
+++ b/libcutils/sched_policy.c
@@ -1,3 +1,4 @@
+
/* libs/cutils/sched_policy.c
**
** Copyright 2007, The Android Open Source Project
@@ -21,6 +22,9 @@
#include <string.h>
#include <errno.h>
#include <fcntl.h>
+
+#ifdef HAVE_SCHED_H
+
#include <sched.h>
#include <cutils/sched_policy.h>
@@ -89,3 +93,5 @@ int set_sched_policy(int tid, SchedPolicy policy)
return 0;
}
+
+#endif /* HAVE_SCHED_H */