summaryrefslogtreecommitdiffstats
path: root/c/src/exec/posix/include/semaphore.h
diff options
context:
space:
mode:
Diffstat (limited to 'c/src/exec/posix/include/semaphore.h')
-rw-r--r--c/src/exec/posix/include/semaphore.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/c/src/exec/posix/include/semaphore.h b/c/src/exec/posix/include/semaphore.h
index 0388f91ad9..79e85f2d6a 100644
--- a/c/src/exec/posix/include/semaphore.h
+++ b/c/src/exec/posix/include/semaphore.h
@@ -6,7 +6,11 @@
#ifndef __POSIX_SEMAPHORE_h
#define __POSIX_SEMAPHORE_h
-#include <rtems/posix/features.h>
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+#include <sys/features.h>
#if defined(_POSIX_SEMAPHORES)
@@ -104,5 +108,9 @@ int sem_getvalue(
#endif /* _POSIX_SEMAPHORES */
+#ifdef __cplusplus
+}
+#endif
+
#endif
/* end of include file */