Don't fail if _POSIX_THREADS is not available.
authordrepper <drepper>
Fri, 16 Apr 2004 19:34:51 +0000 (19:34 +0000)
committerdrepper <drepper>
Fri, 16 Apr 2004 19:34:51 +0000 (19:34 +0000)
rt/tst-timer3.c

index 10b6309..8113f66 100644 (file)
@@ -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"