From 2f13e54dfc3a991804d5cd5cede291da6bdcbabc Mon Sep 17 00:00:00 2001 From: Jouni Malinen Date: Fri, 24 Jun 2016 17:36:17 +0300 Subject: [PATCH] wired: Silence sparse warning on redefinition of IFNAMSIZ driver_wired.c pulls in utils/common.h before net/if.h as a workaround for NetBSD build. This results in IFNAMSIZ getting redefined and sparse warning about this. Silence that warning by undefining the IFNAMSIZ definition from common.h to allow the one from net/if.h being used. In addition, remove duplicated inclusion of net/if.h. Signed-off-by: Jouni Malinen --- src/drivers/driver_wired.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/drivers/driver_wired.c b/src/drivers/driver_wired.c index 15e82df..422a220 100644 --- a/src/drivers/driver_wired.c +++ b/src/drivers/driver_wired.c @@ -14,11 +14,11 @@ #include "driver.h" #include +#undef IFNAMSIZ #include #ifdef __linux__ #include #include -#include #endif /* __linux__ */ #if defined(__FreeBSD__) || defined(__DragonFly__) || defined(__FreeBSD_kernel__) #include -- 2.1.4