diff options
| author | Raphael <raphael@google.com> | 2009-09-17 08:42:38 -0700 |
|---|---|---|
| committer | Android Git Automerger <android-git-automerger@android.com> | 2009-09-17 08:42:38 -0700 |
| commit | 554c0f351b2d02abbbc443a7bb209f800be6f399 (patch) | |
| tree | eb337d2d61ac387a4847764238207a38a35b3fdc /libcutils | |
| parent | 0779a177a5f464d936ffa6e092f6c7cd34bfe559 (diff) | |
| parent | 05647c89ef330c8d3fbc3504ecb5f29db89c84fd (diff) | |
| download | system_core-554c0f351b2d02abbbc443a7bb209f800be6f399.tar.gz system_core-554c0f351b2d02abbbc443a7bb209f800be6f399.tar.bz2 system_core-554c0f351b2d02abbbc443a7bb209f800be6f399.zip | |
am 05647c89: Merge change 25170 into eclair
Merge commit '05647c89ef330c8d3fbc3504ecb5f29db89c84fd' into eclair-plus-aosp
* commit '05647c89ef330c8d3fbc3504ecb5f29db89c84fd':
Disable sched_policy under Windows.
Diffstat (limited to 'libcutils')
| -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 8c7d611f..7553090f 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 */ |
