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
This commit is contained in:
Raphael 2009-09-15 17:10:17 -07:00
parent 3cd5b66ba0
commit 0384a98d6f
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 */