aboutsummaryrefslogtreecommitdiffstats
path: root/src/drivers/driver_bsd.c
diff options
context:
space:
mode:
authorKel Modderman <kel@otaku42.de>2010-03-06 08:16:47 (GMT)
committerJouni Malinen <j@w1.fi>2010-03-06 08:16:47 (GMT)
commit09bd6e8cca713adc35dac214daa8d71c254a651d (patch)
treea02ec88d4b3120456e76eff31d4ed24b46b0ba44 /src/drivers/driver_bsd.c
parentd2f46a2b133e469d9405508b5202135164ed2b85 (diff)
downloadhostap-09bd6e8cca713adc35dac214daa8d71c254a651d.zip
hostap-09bd6e8cca713adc35dac214daa8d71c254a651d.tar.gz
hostap-09bd6e8cca713adc35dac214daa8d71c254a651d.tar.bz2
wpa_supplicant: fix FTBFS on Debian GNU/kFreeBSD
This patch allows wpa_supplicant to compile on Debian's kfreebsd architectures. Patch by Stefan Lippers-Hollmann based on work done by Petr Salinger and Emmanuel Bouthenot for 0.6.X (http://bugs.debian.org/480572).
Diffstat (limited to 'src/drivers/driver_bsd.c')
-rw-r--r--src/drivers/driver_bsd.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/drivers/driver_bsd.c b/src/drivers/driver_bsd.c
index 83c0422..2ba7c8b 100644
--- a/src/drivers/driver_bsd.c
+++ b/src/drivers/driver_bsd.c
@@ -35,11 +35,14 @@
#include <netproto/802_11/ieee80211_ioctl.h>
#include <netproto/802_11/ieee80211_dragonfly.h>
#else /* __DragonFly__ */
+#ifdef __GLIBC__
+#include <netinet/ether.h>
+#endif /* __GLIBC__ */
#include <net80211/ieee80211.h>
#include <net80211/ieee80211_ioctl.h>
#include <net80211/ieee80211_crypto.h>
-#endif /* __DragonFly__ */
-#if __FreeBSD__
+#endif /* __DragonFly__ || __GLIBC__ */
+#if defined(__FreeBSD__) || defined(__FreeBSD_kernel__)
#include <net80211/ieee80211_freebsd.h>
#endif
#if __NetBSD__