Merge change 25170 into eclair
* changes: Disable sched_policy under Windows.
This commit is contained in:
commit
05647c89ef
7 changed files with 36 additions and 0 deletions
|
@ -265,4 +265,9 @@
|
|||
*/
|
||||
#define HAVE_STDBOOL_H 1
|
||||
|
||||
/*
|
||||
* Define if <sched.h> exists.
|
||||
*/
|
||||
#define HAVE_SCHED_H 1
|
||||
|
||||
#endif /*_ANDROID_CONFIG_H*/
|
||||
|
|
|
@ -324,4 +324,9 @@
|
|||
*/
|
||||
/* #define HAVE_STDBOOL_H */
|
||||
|
||||
/*
|
||||
* Define if <sched.h> exists.
|
||||
*/
|
||||
#define HAVE_SCHED_H 1
|
||||
|
||||
#endif /*_ANDROID_CONFIG_H*/
|
||||
|
|
|
@ -312,4 +312,9 @@
|
|||
*/
|
||||
#define HAVE_STDBOOL_H 1
|
||||
|
||||
/*
|
||||
* Define if <sched.h> exists.
|
||||
*/
|
||||
#define HAVE_SCHED_H 1
|
||||
|
||||
#endif /* _ANDROID_CONFIG_H */
|
||||
|
|
|
@ -293,4 +293,9 @@
|
|||
*/
|
||||
#define HAVE_STDBOOL_H 1
|
||||
|
||||
/*
|
||||
* Define if <sched.h> exists.
|
||||
*/
|
||||
#define HAVE_SCHED_H 1
|
||||
|
||||
#endif /*_ANDROID_CONFIG_H*/
|
||||
|
|
|
@ -303,4 +303,9 @@
|
|||
*/
|
||||
#define HAVE_STDBOOL_H 1
|
||||
|
||||
/*
|
||||
* Define if <sched.h> exists.
|
||||
*/
|
||||
#define HAVE_SCHED_H 1
|
||||
|
||||
#endif /* _ANDROID_CONFIG_H */
|
||||
|
|
|
@ -297,4 +297,9 @@
|
|||
*/
|
||||
/* #define HAVE_STDBOOL_H */
|
||||
|
||||
/*
|
||||
* Define if <sched.h> exists.
|
||||
*/
|
||||
/* #define HAVE_SCHED_H */
|
||||
|
||||
#endif /*_ANDROID_CONFIG_H*/
|
||||
|
|
|
@ -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 */
|
||||
|
|
Loading…
Reference in a new issue