OSDN Git Service

sys/personality.h: add missing C++ compat
authorrofl0r <retnyg@gmx.net>
Thu, 8 Aug 2013 18:54:32 +0000 (20:54 +0200)
committerrofl0r <retnyg@gmx.net>
Thu, 8 Aug 2013 18:57:35 +0000 (20:57 +0200)
include/sys/personality.h

index 68eb00c..31d43df 100644 (file)
@@ -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