From 5c0e07e8063f1dfece9930846786143d6aea5f4e Mon Sep 17 00:00:00 2001 From: marta Date: Fri, 21 Jan 2011 12:42:43 +0100 Subject: [PATCH] Undefine the __unused macro around problematic places. --- ipfw/ipfw2.c | 7 +++++++ 1 file changed, 7 insertions(+) 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 */ -- 2.43.0