summaryrefslogtreecommitdiffstats
path: root/sys-utils/ipcrm.c
diff options
context:
space:
mode:
authorAndreas Henriksson2014-08-24 18:04:44 +0200
committerKarel Zak2014-09-17 10:15:14 +0200
commit2eaac5489b54d4e31f9c74311f8acef0a607d43e (patch)
treeea008ee508295df2467a30adafed1ef34d88e2d0 /sys-utils/ipcrm.c
parentagetty: fixing FTBFS on !linux (Debian util-linux 2.20.1-1.2) (diff)
downloadkernel-qcow2-util-linux-2eaac5489b54d4e31f9c74311f8acef0a607d43e.tar.gz
kernel-qcow2-util-linux-2eaac5489b54d4e31f9c74311f8acef0a607d43e.tar.xz
kernel-qcow2-util-linux-2eaac5489b54d4e31f9c74311f8acef0a607d43e.zip
ipcrm: add hacks to avoid FTBFS
Signed-off-by: Andreas Henriksson <andreas@fatal.se>
Diffstat (limited to 'sys-utils/ipcrm.c')
-rw-r--r--sys-utils/ipcrm.c7
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);