]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
ipcrm: add hacks to avoid FTBFS
authorAndreas Henriksson <andreas@fatal.se>
Sun, 24 Aug 2014 16:04:44 +0000 (18:04 +0200)
committerKarel Zak <kzak@redhat.com>
Wed, 17 Sep 2014 08:15:14 +0000 (10:15 +0200)
Signed-off-by: Andreas Henriksson <andreas@fatal.se>
sys-utils/ipcrm.c

index aa58172d8edda6c8557cbfd132df9ddf5cbe76ba..6443f48fb2b499463bd456ff16302f52146e18c3 100644 (file)
@@ -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);