summary refs log tree commit diff
path: root/rt/tst-timer3.c
diff options
context:
space:
mode:
Diffstat (limited to 'rt/tst-timer3.c')
-rw-r--r--rt/tst-timer3.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/rt/tst-timer3.c b/rt/tst-timer3.c
index 10b6309179..8113f66903 100644
--- a/rt/tst-timer3.c
+++ b/rt/tst-timer3.c
@@ -9,7 +9,8 @@
 #include <sys/time.h>
 #include <sys/resource.h>
 #include <unistd.h>
-#include <pthread.h>
+#if _POSIX_THREADS
+# include <pthread.h>
 
 
 /* Creating timers in another thread should work too.  */
@@ -77,5 +78,9 @@ do_test (void)
   return 0;
 }
 
-#define TEST_FUNCTION do_test ()
+# define TEST_FUNCTION do_test ()
+#else
+# define TEST_FUNCTION 0
+#endif
+
 #include "../test-skeleton.c"