Browse Source

DragonFly BSD: Fix driver_bsd.c build

Both hostapd/wpa_supplicant compilation fails on DragonFly BSD.

This patch solves this issue.

I have tested only compilation. Not functionality.
Because I don't have any device which can work on DragonFly BSD.
Masashi Honma 15 years ago
parent
commit
9b336bcef0
1 changed files with 5 additions and 0 deletions
  1. 5 0
      src/drivers/driver_bsd.c

+ 5 - 0
src/drivers/driver_bsd.c

@@ -30,9 +30,14 @@
 #endif
 #include <net/route.h>
 
+#ifdef __DragonFly__
+#include <netproto/802_11/ieee80211_ioctl.h>
+#include <netproto/802_11/ieee80211_dragonfly.h>
+#else /* __DragonFly__ */
 #include <net80211/ieee80211.h>
 #include <net80211/ieee80211_crypto.h>
 #include <net80211/ieee80211_ioctl.h>
+#endif /* __DragonFly__ */
 #if __FreeBSD__
 #include <net80211/ieee80211_freebsd.h>
 #endif