diff --git a/src/drivers/driver_bsd.c b/src/drivers/driver_bsd.c index 6ac51d684..7debba477 100644 --- a/src/drivers/driver_bsd.c +++ b/src/drivers/driver_bsd.c @@ -21,7 +21,13 @@ #include "ieee802_11_defs.h" #include + +#ifdef __NetBSD__ +#include +#define COMPAT_FREEBSD_NET80211 +#else #include +#endif #include #include @@ -449,7 +455,12 @@ wpa_driver_bsd_scan(void *priv, const u8 *ssid, size_t ssid_len) } #include +#if __FreeBSD__ #include +#endif +#if __NetBSD__ +#include +#endif static void wpa_driver_bsd_event_receive(int sock, void *ctx, void *sock_ctx)