about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--include/sys/ipc.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/sys/ipc.h b/include/sys/ipc.h
index f4cb9ac6..c5a39819 100644
--- a/include/sys/ipc.h
+++ b/include/sys/ipc.h
@@ -16,6 +16,11 @@ extern "C" {
 #define __ipc_perm_key __key
 #define __ipc_perm_seq __seq
 
+#if defined(_GNU_SOURCE) || defined(_BSD_SOURCE)
+#define __key key
+#define __seq seq
+#endif
+
 #include <bits/ipc.h>
 
 #define IPC_CREAT  01000