diff options
author | Andreas Henriksson <andreas@fatal.se> | 2014-08-24 18:04:44 +0200 |
---|---|---|
committer | Karel Zak <kzak@redhat.com> | 2014-10-24 10:10:31 +0200 |
commit | 78b945465e09a04923a622bb2170fe007bc693b6 (patch) | |
tree | 3fe17591cd4bd2c1dcef9c82d1db6795c5bbca1f | |
parent | 19c5345538c64e6878b6c2dca962c95cfd033852 (diff) | |
download | util-linux-78b945465e09a04923a622bb2170fe007bc693b6.tar.gz |
ipcrm: add hacks to avoid FTBFS
Signed-off-by: Andreas Henriksson <andreas@fatal.se>
-rw-r--r-- | sys-utils/ipcrm.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/sys-utils/ipcrm.c b/sys-utils/ipcrm.c index aa58172d8..6443f48fb 100644 --- a/sys-utils/ipcrm.c +++ b/sys-utils/ipcrm.c @@ -271,6 +271,13 @@ static int remove_all(type_id type) ret |= remove_id(SEM, 0, rm_me); } } +/* kFreeBSD hackery -- ah 20140723 */ +#ifndef MSG_STAT +#define MSG_STAT 11 +#endif +#ifndef MSG_INFO +#define MSG_INFO 12 +#endif if (type == MSG || type == ALL) { maxid = msgctl(0, MSG_INFO, (struct msqid_ds *)(void *)&msginfo); |