summaryrefslogtreecommitdiff
path: root/libgo/sysinfo.c
diff options
context:
space:
mode:
Diffstat (limited to 'libgo/sysinfo.c')
-rw-r--r--libgo/sysinfo.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/libgo/sysinfo.c b/libgo/sysinfo.c
index 07d68673eb0..09c0f496a6e 100644
--- a/libgo/sysinfo.c
+++ b/libgo/sysinfo.c
@@ -152,6 +152,9 @@
#if defined(HAVE_SCHED_H)
#include <sched.h>
#endif
+#if defined(HAVE_SEMAPHORE_H)
+#include <semaphore.h>
+#endif
/* Constants that may only be defined as expressions on some systems,
expressions too complex for -fdump-go-spec to handle. These are