diff -u pthread280/pthread.h pthread280fix/pthread.h
--- pthread280/pthread.h	2009-07-31 09:03:30 +0900
+++ pthread280fix/pthread.h	2009-12-08 01:20:23 +0900
@@ -104,7 +104,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
diff -u pthread280/sched.h pthread280fix/sched.h
--- pthread280/sched.h	2009-07-31 09:03:30 +0900
+++ pthread280fix/sched.h	2009-12-08 01:16:03 +0900
@@ -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
@@ -119,6 +119,8 @@
 #  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;
