Merge change 25170 into eclair

* changes:
  Disable sched_policy under Windows.
This commit is contained in:
Android (Google) Code Review 2009-09-16 19:43:11 -04:00
commit 05647c89ef
7 changed files with 36 additions and 0 deletions

View file

@ -265,4 +265,9 @@
*/
#define HAVE_STDBOOL_H 1
/*
* Define if <sched.h> exists.
*/
#define HAVE_SCHED_H 1
#endif /*_ANDROID_CONFIG_H*/

View file

@ -324,4 +324,9 @@
*/
/* #define HAVE_STDBOOL_H */
/*
* Define if <sched.h> exists.
*/
#define HAVE_SCHED_H 1
#endif /*_ANDROID_CONFIG_H*/

View file

@ -312,4 +312,9 @@
*/
#define HAVE_STDBOOL_H 1
/*
* Define if <sched.h> exists.
*/
#define HAVE_SCHED_H 1
#endif /* _ANDROID_CONFIG_H */

View file

@ -293,4 +293,9 @@
*/
#define HAVE_STDBOOL_H 1
/*
* Define if <sched.h> exists.
*/
#define HAVE_SCHED_H 1
#endif /*_ANDROID_CONFIG_H*/

View file

@ -303,4 +303,9 @@
*/
#define HAVE_STDBOOL_H 1
/*
* Define if <sched.h> exists.
*/
#define HAVE_SCHED_H 1
#endif /* _ANDROID_CONFIG_H */

View file

@ -297,4 +297,9 @@
*/
/* #define HAVE_STDBOOL_H */
/*
* Define if <sched.h> exists.
*/
/* #define HAVE_SCHED_H */
#endif /*_ANDROID_CONFIG_H*/

View file

@ -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 */