summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/sys/personality.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/sys/personality.h b/include/sys/personality.h
index 68eb00ca..31d43dfe 100644
--- a/include/sys/personality.h
+++ b/include/sys/personality.h
@@ -1,6 +1,10 @@
#ifndef _PERSONALITY_H
#define _PERSONALITY_H
+#ifdef __cplusplus
+extern "C" {
+#endif
+
#define ADDR_NO_RANDOMIZE 0x0040000
#define MMAP_PAGE_ZERO 0x0100000
#define ADDR_COMPAT_LAYOUT 0x0200000
@@ -36,4 +40,7 @@
int personality(unsigned long);
+#ifdef __cplusplus
+}
+#endif
#endif