diff options
author | John Marino <marino@FreeBSD.org> | 2015-04-01 18:57:32 +0000 |
---|---|---|
committer | John Marino <marino@FreeBSD.org> | 2015-04-01 18:57:32 +0000 |
commit | 2a370ef090a89f9e06cc418dd88c9d2e09a0d2a7 (patch) | |
tree | 20c5b38dcef1ee1a7d62ab225b337320c135dc08 /net/hostapd | |
parent | 061e2a1317022e253828a867e1cfa0f52d3ec1f3 (diff) | |
download | ports-2a370ef090a89f9e06cc418dd88c9d2e09a0d2a7.tar.gz ports-2a370ef090a89f9e06cc418dd88c9d2e09a0d2a7.zip |
Notes
Diffstat (limited to 'net/hostapd')
-rw-r--r-- | net/hostapd/files/patch-src_drivers_driver__bsd.c | 14 | ||||
-rw-r--r-- | net/hostapd/files/patch-src_wps_wps__upnp.c | 20 |
2 files changed, 34 insertions, 0 deletions
diff --git a/net/hostapd/files/patch-src_drivers_driver__bsd.c b/net/hostapd/files/patch-src_drivers_driver__bsd.c new file mode 100644 index 000000000000..28bf4da9671d --- /dev/null +++ b/net/hostapd/files/patch-src_drivers_driver__bsd.c @@ -0,0 +1,14 @@ +--- src/drivers/driver_bsd.c.orig 2015-03-15 17:30:39 UTC ++++ src/drivers/driver_bsd.c +@@ -623,7 +623,11 @@ rtbuf_len(void) + static int bsd_sta_deauth(void *priv, const u8 *own_addr, const u8 *addr, + int reason_code); + ++#ifdef __DragonFly__ ++const char * ++#else + static const char * ++#endif + ether_sprintf(const u8 *addr) + { + static char buf[sizeof(MACSTR)]; diff --git a/net/hostapd/files/patch-src_wps_wps__upnp.c b/net/hostapd/files/patch-src_wps_wps__upnp.c new file mode 100644 index 000000000000..1e3651d33162 --- /dev/null +++ b/net/hostapd/files/patch-src_wps_wps__upnp.c @@ -0,0 +1,20 @@ +--- src/wps/wps_upnp.c.orig 2015-03-15 17:30:39 UTC ++++ src/wps/wps_upnp.c +@@ -837,7 +837,7 @@ fail: + } + + +-#if defined(__FreeBSD__) || defined(__FreeBSD_kernel__) ++#if defined(__FreeBSD__) || defined(__FreeBSD_kernel__) || defined(__DragonFly__) + #include <sys/sysctl.h> + #include <net/route.h> + #include <net/if_dl.h> +@@ -924,7 +924,7 @@ int get_netif_info(const char *net_if, u + goto fail; + } + os_memcpy(mac, req.ifr_addr.sa_data, 6); +-#elif defined(__FreeBSD__) || defined(__FreeBSD_kernel__) ++#elif defined(__FreeBSD__) || defined(__FreeBSD_kernel__) || defined(__DragonFly__) + if (eth_get(net_if, mac) < 0) { + wpa_printf(MSG_ERROR, "WPS UPnP: Failed to get MAC address"); + goto fail; |