about summary refs log tree commit diff
path: root/include/sys/ipc.h
diff options
context:
space:
mode:
authorrofl0r <retnyg@gmx.net>2012-12-06 19:39:52 +0100
committerrofl0r <retnyg@gmx.net>2012-12-06 20:27:54 +0100
commitf1bb78343a2fadf7087f3f0f7753084a23a334e9 (patch)
treec00b460830839aa10e89791d06fa31095da6c0cc /include/sys/ipc.h
parent7aec71c411373f8b28a8ba1443f2631ad08d4a1b (diff)
downloadmusl-f1bb78343a2fadf7087f3f0f7753084a23a334e9.tar.gz
musl-f1bb78343a2fadf7087f3f0f7753084a23a334e9.tar.xz
musl-f1bb78343a2fadf7087f3f0f7753084a23a334e9.zip
ipc.h: fix gnu aliases for key and seq in struct ipc_perm
the macro was the wrong way round, additionally GNU defines
__ prefixed versions, which are used by qemu.
Diffstat (limited to 'include/sys/ipc.h')
-rw-r--r--include/sys/ipc.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/include/sys/ipc.h b/include/sys/ipc.h
index 3f896b8c..9ac11fe3 100644
--- a/include/sys/ipc.h
+++ b/include/sys/ipc.h
@@ -14,8 +14,10 @@ extern "C" {
 #include <bits/alltypes.h>
 
 #ifdef _GNU_SOURCE
-#define __ipc_perm_key key
-#define __ipc_perm_seq seq
+#define key __ipc_perm_key
+#define seq __ipc_perm_seq
+#define __key __ipc_perm_key
+#define __seq __ipc_perm_seq
 #endif
 
 #include <bits/ipc.h>