Allow driver_bsd.c to be built for NetBSD
This commit is contained in:
parent
a3bfd14de1
commit
898d6921b4
1 changed files with 11 additions and 0 deletions
|
@ -21,7 +21,13 @@
|
||||||
#include "ieee802_11_defs.h"
|
#include "ieee802_11_defs.h"
|
||||||
|
|
||||||
#include <net/if.h>
|
#include <net/if.h>
|
||||||
|
|
||||||
|
#ifdef __NetBSD__
|
||||||
|
#include <net/if_ether.h>
|
||||||
|
#define COMPAT_FREEBSD_NET80211
|
||||||
|
#else
|
||||||
#include <net/ethernet.h>
|
#include <net/ethernet.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
#include <net80211/ieee80211.h>
|
#include <net80211/ieee80211.h>
|
||||||
#include <net80211/ieee80211_crypto.h>
|
#include <net80211/ieee80211_crypto.h>
|
||||||
|
@ -449,7 +455,12 @@ wpa_driver_bsd_scan(void *priv, const u8 *ssid, size_t ssid_len)
|
||||||
}
|
}
|
||||||
|
|
||||||
#include <net/route.h>
|
#include <net/route.h>
|
||||||
|
#if __FreeBSD__
|
||||||
#include <net80211/ieee80211_freebsd.h>
|
#include <net80211/ieee80211_freebsd.h>
|
||||||
|
#endif
|
||||||
|
#if __NetBSD__
|
||||||
|
#include <net80211/ieee80211_netbsd.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
static void
|
static void
|
||||||
wpa_driver_bsd_event_receive(int sock, void *ctx, void *sock_ctx)
|
wpa_driver_bsd_event_receive(int sock, void *ctx, void *sock_ctx)
|
||||||
|
|
Loading…
Reference in a new issue