about summary refs log tree commit diff
path: root/sysdeps/pthread/semaphore.h
diff options
context:
space:
mode:
Diffstat (limited to 'sysdeps/pthread/semaphore.h')
-rw-r--r--sysdeps/pthread/semaphore.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/sysdeps/pthread/semaphore.h b/sysdeps/pthread/semaphore.h
index 9927db7667..5508267c0c 100644
--- a/sysdeps/pthread/semaphore.h
+++ b/sysdeps/pthread/semaphore.h
@@ -21,8 +21,7 @@
 #include <features.h>
 #include <sys/types.h>
 #ifdef __USE_XOPEN2K
-# define __need_timespec
-# include <time.h>
+# include <bits/types/struct_timespec.h>
 #endif
 
 /* Get the definition for sem_t.  */