summaryrefslogtreecommitdiffstats
path: root/c/src/exec/posix/include/sched.h
diff options
context:
space:
mode:
Diffstat (limited to 'c/src/exec/posix/include/sched.h')
-rw-r--r--c/src/exec/posix/include/sched.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/c/src/exec/posix/include/sched.h b/c/src/exec/posix/include/sched.h
index 14a603c0c5..ccc42d35e2 100644
--- a/c/src/exec/posix/include/sched.h
+++ b/c/src/exec/posix/include/sched.h
@@ -7,6 +7,10 @@
#ifndef __POSIX_SCHEDULING_h
#define __POSIX_SCHEDULING_h
+#ifdef __cplusplus
+extern "C" {
+#endif
+
#include <sys/features.h>
#if defined(_POSIX_PRIORITY_SCHEDULING)
@@ -83,6 +87,10 @@ int sched_yield( void );
#endif /* _POSIX_THREADS or _POSIX_PRIORITY_SCHEDULING */
+#ifdef __cplusplus
+}
+#endif
+
#endif
/* end of include file */