summaryrefslogtreecommitdiffstats
path: root/c/src/exec/posix/include/pthread.h
diff options
context:
space:
mode:
Diffstat (limited to 'c/src/exec/posix/include/pthread.h')
-rw-r--r--c/src/exec/posix/include/pthread.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/c/src/exec/posix/include/pthread.h b/c/src/exec/posix/include/pthread.h
index d70a794f38..8141a53548 100644
--- a/c/src/exec/posix/include/pthread.h
+++ b/c/src/exec/posix/include/pthread.h
@@ -6,6 +6,10 @@
#ifndef __PTHREAD_h
#define __PTHREAD_h
+#ifdef __cplusplus
+extern "C" {
+#endif
+
#include <sys/features.h>
#if defined(_POSIX_THREADS)
@@ -496,5 +500,10 @@ int pthread_attr_getcputime(
#endif /* defined(_POSIX_THREAD_CPUTIME) */
#endif /* defined(_POSIX_THREADS) */
+
+#ifdef __cplusplus
+}
+#endif
+
#endif
/* end of include file */