X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=ipfw%2Fipfw2.c;h=6cb826b91fb76e5249922f5cfd1c8d47fa9972ca;hb=5c0e07e8063f1dfece9930846786143d6aea5f4e;hp=9e2dd592f77ea3e1a1810e1fbe2ccefd69944d40;hpb=40445faa1db58b90083115bc315d095e7eb2fe51;p=ipfw.git diff --git a/ipfw/ipfw2.c b/ipfw/ipfw2.c index 9e2dd59..6cb826b 100644 --- a/ipfw/ipfw2.c +++ b/ipfw/ipfw2.c @@ -40,7 +40,14 @@ #include /* ctime */ #include /* _long_to_time */ #include +/* + * FreeBSD uses __unused as a shorthand for __attribute__ ((__unused__)) + * whereas Linux sometimes uses __unused as a variable name. + * undefine the macro around problematic places. + */ +#undef __unused #include +#define __unused __attribute__ ((__unused__)) #include #include /* only IFNAMSIZ */