summaryrefslogtreecommitdiff
path: root/sched.h
diff options
context:
space:
mode:
authorrpj <rpj>2009-03-03 21:43:47 +0000
committerrpj <rpj>2009-03-03 21:43:47 +0000
commit271aefcce0ebde39bc104daf342e1048727727d0 (patch)
treec137e24684d20453e06529c75f5028cd5c060957 /sched.h
parente0513b5c7247bdafd5398f03bb7853cd880f5de6 (diff)
''
Diffstat (limited to 'sched.h')
-rw-r--r--sched.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/sched.h b/sched.h
index 8674083..e3e7a00 100644
--- a/sched.h
+++ b/sched.h
@@ -60,7 +60,7 @@
#define PTW32_LEVEL_MAX 3
-#if !defined(PTW32_LEVEL)
+#if ( defined(_POSIX_C_SOURCE) && _POSIX_C_SOURCE >= 200112 ) || !defined(PTW32_LEVEL)
#define PTW32_LEVEL PTW32_LEVEL_MAX
/* Include everything */
#endif
@@ -114,14 +114,14 @@
#endif /* PTW32_LEVEL >= PTW32_LEVEL_MAX */
#if defined(__MINGW32__) || defined(_UWIN)
-#if PTW32_LEVEL >= PTW32_LEVEL_MAX
+# if PTW32_LEVEL >= PTW32_LEVEL_MAX
/* For pid_t */
# include <sys/types.h>
/* Required by Unix 98 */
# include <time.h>
-#else
-typedef int pid_t;
-#endif /* PTW32_LEVEL >= PTW32_LEVEL_MAX */
+# else
+ typedef int pid_t;
+# endif
#else
typedef int pid_t;
#endif