Add support for kfreebsd architecture
Index: b/configure.ac
===================================================================
--- a/configure.ac
+++ b/configure.ac
@@ -68,7 +68,7 @@
 		AC_DEFINE(SYS_LINUX, 1, Compiling for Linux OS)
         linux="yes"
 		;;
-	freebsd*)
+	freebsd* | kfreebsd*)
 		AC_MSG_RESULT(none needed)
 		AC_DEFINE(SYS_FREEBSD, 1, Compiling for FreeBSD)
 		bsd="yes"
@@ -129,7 +129,7 @@
 		AC_DEFINE(SYS_LINUX, 1, Compiling for Linux OS)
         linux="yes"
 		;;
-    freebsd*)
+    freebsd* | kfreebsd*)
         AC_MSG_RESULT(none needed)
         AC_DEFINE(SYS_FREEBSD, 1, Compiling for FreeBSD)
 		bsd="yes"
Index: b/packetsource_bsdrt.cc
===================================================================
--- a/packetsource_bsdrt.cc
+++ b/packetsource_bsdrt.cc
@@ -27,6 +27,10 @@
 #include <net80211/ieee80211_ioctl.h>
 #endif
 
+#ifdef SYS_FREEBSD
+#include <net/if_media.h>
+#endif
+
 #if (defined(HAVE_LIBPCAP) && (defined(SYS_OPENBSD) || defined(SYS_NETBSD) || \
 							   defined(SYS_FREEBSD)))
 
Index: b/packetsource_pcap.cc
===================================================================
--- a/packetsource_pcap.cc
+++ b/packetsource_pcap.cc
@@ -72,6 +72,7 @@
 #include <sys/socket.h>
 #include <net/if.h>
 #include <net/if_media.h>
+#include <net/bpf.h>
 
 #ifdef HAVE_RADIOTAP
 #include <net80211/ieee80211_ioctl.h>
Index: b/configure
===================================================================
--- a/configure
+++ b/configure
@@ -3822,7 +3822,7 @@
 
         linux="yes"
 		;;
-	freebsd*)
+	freebsd* | kfreebsd*)
 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
 $as_echo "none needed" >&6; }
 
@@ -3906,7 +3906,7 @@
 
         linux="yes"
 		;;
-    freebsd*)
+    freebsd* | kfreebsd*)
         { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
 $as_echo "none needed" >&6; }
 
Index: b/ifcontrol.h
===================================================================
--- a/ifcontrol.h
+++ b/ifcontrol.h
@@ -36,6 +36,7 @@
 #endif
 
 #ifndef SYS_CYGWIN
+#include <stdint.h>
 #include <net/if_arp.h>
 #include <sys/ioctl.h>
 #include <netinet/in.h>
Index: b/iwcontrol.cc
===================================================================
--- a/iwcontrol.cc
+++ b/iwcontrol.cc
@@ -20,6 +20,7 @@
 #include "iwcontrol.h"
 
 #ifdef SYS_LINUX
+#include <stdint.h>
 #include <net/if_arp.h>
 #include <sys/socket.h>
 #include <sys/ioctl.h>
