OSDN Git Service

glibc ipc64_perm __key compatibility.
authorElliott Hughes <enh@google.com>
Sat, 28 Jan 2017 03:12:32 +0000 (19:12 -0800)
committerElliott Hughes <enh@google.com>
Sat, 28 Jan 2017 03:12:32 +0000 (19:12 -0800)
glibc gives the `struct ipc64_perm` fields `key` and `seq` double-underscore
names. strace refers to the fields by those names, and there's no obvious
reason not to go along with this.

Bug: N/A
Test: built strace 4.15 with a hacked NDK
Change-Id: I8b2b0f75363349d99edaecda50fe897ee0fa0c65

libc/include/sys/ipc.h

index 1a5a4a0..3d6c45f 100644 (file)
 #include <sys/types.h>
 #include <linux/ipc.h>
 
+#if defined(__USE_GNU)
+#define __key key
+#define __seq seq
+#endif
+
 #define ipc_perm ipc64_perm
 
 __BEGIN_DECLS