From: Jouni Malinen Date: Fri, 24 Jun 2016 14:36:17 +0000 (+0300) Subject: wired: Silence sparse warning on redefinition of IFNAMSIZ X-Git-Tag: hostap_2_6~330 X-Git-Url: http://www.project-moonshot.org/gitweb/?p=mech_eap.git;a=commitdiff_plain;h=2f13e54dfc3a991804d5cd5cede291da6bdcbabc 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 --- 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