From: Roy Marples Date: Thu, 19 Sep 2019 09:59:09 +0000 (+0100) Subject: NetBSD: Fix compile X-Git-Tag: hostap_2_10~2337 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=7846e8d6086bbbbf549a21fd505847e169d2f303;p=thirdparty%2Fhostap.git NetBSD: Fix compile On NetBSD the ethernet header is net/if_ether.h This also pulls in net/if.h which defines if_type, which in turn conflicts with an enum in wpa_supplicant. As such we need to include this at the bottom rather than at the top. Signed-off-by: Roy Marples --- diff --git a/wpa_supplicant/ctrl_iface.c b/wpa_supplicant/ctrl_iface.c index 6ed6837b3..65d027153 100644 --- a/wpa_supplicant/ctrl_iface.c +++ b/wpa_supplicant/ctrl_iface.c @@ -11,9 +11,6 @@ #include #endif /* CONFIG_TESTING_OPTIONS */ -#if !defined(__CYGWIN__) && !defined(CONFIG_NATIVE_WINDOWS) -#include -#endif #include "utils/common.h" #include "utils/eloop.h" #include "utils/uuid.h" @@ -60,6 +57,12 @@ #include "dpp_supplicant.h" #include "sme.h" +#ifdef __NetBSD__ +#include +#elif !defined(__CYGWIN__) && !defined(CONFIG_NATIVE_WINDOWS) +#include +#endif + static int wpa_supplicant_global_iface_list(struct wpa_global *global, char *buf, int len); static int wpa_supplicant_global_iface_interfaces(struct wpa_global *global,