From 898d6921b4cfe8b0696d85d756204379f1116182 Mon Sep 17 00:00:00 2001 From: "Jeremy C. Reed" Date: Sun, 8 Feb 2009 13:28:37 +0200 Subject: [PATCH] Allow driver_bsd.c to be built for NetBSD --- src/drivers/driver_bsd.c | 11 +++++++++++ 1 file changed, 11 insertions(+) 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)