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.
This commit is contained in:
parent
7aec71c411
commit
f1bb78343a
1 changed files with 4 additions and 2 deletions
|
|
@ -14,8 +14,10 @@ extern "C" {
|
||||||
#include <bits/alltypes.h>
|
#include <bits/alltypes.h>
|
||||||
|
|
||||||
#ifdef _GNU_SOURCE
|
#ifdef _GNU_SOURCE
|
||||||
#define __ipc_perm_key key
|
#define key __ipc_perm_key
|
||||||
#define __ipc_perm_seq seq
|
#define seq __ipc_perm_seq
|
||||||
|
#define __key __ipc_perm_key
|
||||||
|
#define __seq __ipc_perm_seq
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include <bits/ipc.h>
|
#include <bits/ipc.h>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue