[PATCH] DragonFly BSD: Fix driver_bsd.c build

Masashi Honma honma at ictec.co.jp
Wed Sep 30 20:19:46 EDT 2009


Hello.

Both hostapd/wpa_supplicant compilation fails on DragonFly BSD.

This patch solves this issue.

diff --git a/src/drivers/driver_bsd.c b/src/drivers/driver_bsd.c
index 036584b..7842dea 100644
--- a/src/drivers/driver_bsd.c
+++ b/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


I have tested only compilation. Not functionality.
Because I don't have any device which can work on DragonFly BSD.
I hope somebody will test this patch.

Regards,
Masashi Honma.


More information about the HostAP mailing list