freebsd-ports/net/hostapd/files/patch-src_drivers_driver__bsd.c
John Marino 7d36548854 net/hostapd: Fix build on DragonFly and with LibreSSL
1. Return the driver_bsd.c patch, it's still required for DF
2. Modify the os_unix.c patch to include exception for DF
3. Add patch to fix build with LibreSSL (originates from OpenBSD)
4. There's no configure set, so replace ineffective configure arg
   with CFLAGS and LDFLAGS for non-base SSL library

Approved by:	SSL blanket and DF blanket
2016-09-30 17:29:08 +00:00

14 lines
366 B
C

--- src/drivers/driver_bsd.c.orig 2015-09-27 19:02:05 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)];