[PATCH]: fix FTBFS on Debian GNU/kFreeBSD

Kel Modderman kel
Sun May 11 06:13:32 PDT 2008


Hi,

A patch was submitted by Emmanuel Bouthenot to the Debian BTS to allow the
wpasupplicant package to be built on Debian GNU/kFreeBSD.
  http://bugs.debian.org/480572

The diff to upstream is attached.

Thanks, Kel.
---
--- a/src/drivers/driver_bsd.c
+++ b/src/drivers/driver_bsd.c
@@ -27,6 +27,10 @@
 #include <net80211/ieee80211_crypto.h>
 #include <net80211/ieee80211_ioctl.h>
 
+#if defined(__FreeBSD__) || defined(__FreeBSD_kernel__)
+#include "bsd/string.h"
+#endif
+
 struct wpa_driver_bsd_data {
 	int	sock;			/* open socket for 802.11 ioctls */
 	int	route;			/* routing socket for events */
--- a/src/l2_packet/l2_packet_freebsd.c
+++ b/src/l2_packet/l2_packet_freebsd.c
@@ -17,6 +17,11 @@
 #ifdef __APPLE__
 #include <net/bpf.h>
 #endif /* __APPLE__ */
+
+#if defined(__FreeBSD__) || defined(__FreeBSD_kernel__)
+#include <net/bpf.h>
+#endif
+
 #include <pcap.h>
 
 #include <sys/ioctl.h>
--- a/src/utils/common.h
+++ b/src/utils/common.h
@@ -17,10 +17,10 @@
 
 #include "os.h"
 
-#ifdef __linux__
+#if defined(__linux__) || defined(__FreeBSD__) || defined(__FreeBSD_kernel__)
 #include <endian.h>
 #include <byteswap.h>
-#endif /* __linux__ */
+#endif /* __linux__ / GNU/kfreebsd */
 
 #if defined(__FreeBSD__) || defined(__NetBSD__) || defined(__DragonFly__)
 #include <sys/types.h>
---



More information about the Hostap mailing list