From: Andreas Henriksson Date: Sun, 24 Aug 2014 16:04:44 +0000 (+0200) Subject: ipcrm: add hacks to avoid FTBFS X-Git-Tag: v2.26-rc1~459 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2eaac5489b54d4e31f9c74311f8acef0a607d43e;p=thirdparty%2Futil-linux.git ipcrm: add hacks to avoid FTBFS Signed-off-by: Andreas Henriksson --- diff --git a/sys-utils/ipcrm.c b/sys-utils/ipcrm.c index aa58172d8e..6443f48fb2 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);