aboutsummaryrefslogtreecommitdiff
path: root/src/include/bsdsignal.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/include/bsdsignal.h')
-rw-r--r--src/include/bsdsignal.h11
1 files changed, 10 insertions, 1 deletions
diff --git a/src/include/bsdsignal.h b/src/include/bsdsignal.h
index 1a55293c..ecbebebe 100644
--- a/src/include/bsdsignal.h
+++ b/src/include/bsdsignal.h
@@ -36,9 +36,14 @@
#ifndef OPENAXIOM_BSDSIGNAL_included
#define OPENAXIOM_BSDSIGNAL_included
+#include <signal.h>
+
#include "open-axiom.h"
-#include <signal.h>
+#ifdef __cplusplus
+extern "C" {
+#endif
+
#ifdef SIGCHLD
# define OPENAXIOM_SIGCHLD SIGCHLD
@@ -53,4 +58,8 @@
typedef void (* SignalHandlerFunc)(int);
OPENAXIOM_EXPORT SignalHandlerFunc bsdSignal(int, SignalHandlerFunc, int);
+#ifdef __cplusplus
+}
+#endif
+
#endif /* OPENAXIOM_BSDSIGNAL_included */