summaryrefslogtreecommitdiff
path: root/sched.h
diff options
context:
space:
mode:
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