diff options
author | Raphael | 2009-09-15 19:10:17 -0500 |
---|---|---|
committer | Raphael | 2009-09-15 19:10:17 -0500 |
commit | 0384a98d6f61fa47ffde01c15e552f738e88fb94 (patch) | |
tree | b76b3e8d13b480ceabccaaf24d638668572cf17a /libcutils/sched_policy.c | |
parent | 3cd5b66ba05cffe38bfa4e2da9b93292ba0b073a (diff) | |
download | platform-system-core-0384a98d6f61fa47ffde01c15e552f738e88fb94.tar.gz platform-system-core-0384a98d6f61fa47ffde01c15e552f738e88fb94.tar.xz platform-system-core-0384a98d6f61fa47ffde01c15e552f738e88fb94.zip |
Disable sched_policy under Windows.
This introduces a new HAVE_SCHED_H arch define, which is used
to prevent from building sched_policy.c during the Windows SDK.
Change-Id: I3667857a4ae7d6baaf1efd1cd187a5baf91419d8
Diffstat (limited to 'libcutils/sched_policy.c')
-rw-r--r-- | libcutils/sched_policy.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/libcutils/sched_policy.c b/libcutils/sched_policy.c index 8c7d611fa..7553090fd 100644 --- a/libcutils/sched_policy.c +++ b/libcutils/sched_policy.c | |||
@@ -1,3 +1,4 @@ | |||
1 | |||
1 | /* libs/cutils/sched_policy.c | 2 | /* libs/cutils/sched_policy.c |
2 | ** | 3 | ** |
3 | ** Copyright 2007, The Android Open Source Project | 4 | ** Copyright 2007, The Android Open Source Project |
@@ -21,6 +22,9 @@ | |||
21 | #include <string.h> | 22 | #include <string.h> |
22 | #include <errno.h> | 23 | #include <errno.h> |
23 | #include <fcntl.h> | 24 | #include <fcntl.h> |
25 | |||
26 | #ifdef HAVE_SCHED_H | ||
27 | |||
24 | #include <sched.h> | 28 | #include <sched.h> |
25 | 29 | ||
26 | #include <cutils/sched_policy.h> | 30 | #include <cutils/sched_policy.h> |
@@ -89,3 +93,5 @@ int set_sched_policy(int tid, SchedPolicy policy) | |||
89 | 93 | ||
90 | return 0; | 94 | return 0; |
91 | } | 95 | } |
96 | |||
97 | #endif /* HAVE_SCHED_H */ | ||