about summary refs log tree commit diff
path: root/include/sys/ipc.h
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2012-12-06 16:52:09 -0500
committerRich Felker <dalias@aerifal.cx>2012-12-06 16:52:09 -0500
commitd1b6fc6ecc59441a37269d6512c5d34d1a2412cd (patch)
tree67b1c29ed52772ef987d041e615a95d789ec833c /include/sys/ipc.h
parent6bffcc2335f584e45f0b704986413f42391c7057 (diff)
downloadmusl-d1b6fc6ecc59441a37269d6512c5d34d1a2412cd.tar.gz
musl-d1b6fc6ecc59441a37269d6512c5d34d1a2412cd.tar.xz
musl-d1b6fc6ecc59441a37269d6512c5d34d1a2412cd.zip
fix names of ipc_perm __key/__seq elements
previously the names were exposed as key/seq with _GNU_SOURCE and
__ipc_perm_key/__ipc_perm/seq otherwise, whereas glibc always uses
__key and __seq for the names. thus, the old behavior never matched
glibc, and the new behavior always does, regardless of feature test
macros.

for now, i'm leaving the renaming here in sys/ipc.h where it's easy to
change globally for all archs, in case something turns out to be
wrong, but eventually the names could just be incorporated directly
into the bits headers for each arch and the renaming removed.
Diffstat (limited to 'include/sys/ipc.h')
-rw-r--r--include/sys/ipc.h8
1 files changed, 2 insertions, 6 deletions
diff --git a/include/sys/ipc.h b/include/sys/ipc.h
index 9ac11fe3..f4cb9ac6 100644
--- a/include/sys/ipc.h
+++ b/include/sys/ipc.h
@@ -13,12 +13,8 @@ extern "C" {
 
 #include <bits/alltypes.h>
 
-#ifdef _GNU_SOURCE
-#define key __ipc_perm_key
-#define seq __ipc_perm_seq
-#define __key __ipc_perm_key
-#define __seq __ipc_perm_seq
-#endif
+#define __ipc_perm_key __key
+#define __ipc_perm_seq __seq
 
 #include <bits/ipc.h>