summaryrefslogtreecommitdiff
path: root/sysdeps/pthread/bits/semaphore.h
diff options
context:
space:
mode:
Diffstat (limited to 'sysdeps/pthread/bits/semaphore.h')
-rw-r--r--sysdeps/pthread/bits/semaphore.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/sysdeps/pthread/bits/semaphore.h b/sysdeps/pthread/bits/semaphore.h
index 5e987c1..4c78409 100644
--- a/sysdeps/pthread/bits/semaphore.h
+++ b/sysdeps/pthread/bits/semaphore.h
@@ -24,7 +24,8 @@
#error Never include <bits/semaphore.h> directly.
#endif
-#include <pthread.h>
+#include <bits/spin-lock.h>
+#include <bits/pthread.h>
/* User visible part of a semaphore. */
struct __semaphore