aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant/ctrl_iface_unix.c
diff options
context:
space:
mode:
authorKel Modderman <kel@otaku42.de>2010-03-06 08:16:47 (GMT)
committerJouni Malinen <j@w1.fi>2010-03-06 08:16:47 (GMT)
commit09bd6e8cca713adc35dac214daa8d71c254a651d (patch)
treea02ec88d4b3120456e76eff31d4ed24b46b0ba44 /wpa_supplicant/ctrl_iface_unix.c
parentd2f46a2b133e469d9405508b5202135164ed2b85 (diff)
downloadhostap-09bd6e8cca713adc35dac214daa8d71c254a651d.zip
hostap-09bd6e8cca713adc35dac214daa8d71c254a651d.tar.gz
hostap-09bd6e8cca713adc35dac214daa8d71c254a651d.tar.bz2
wpa_supplicant: fix FTBFS on Debian GNU/kFreeBSD
This patch allows wpa_supplicant to compile on Debian's kfreebsd architectures. Patch by Stefan Lippers-Hollmann based on work done by Petr Salinger and Emmanuel Bouthenot for 0.6.X (http://bugs.debian.org/480572).
Diffstat (limited to 'wpa_supplicant/ctrl_iface_unix.c')
-rw-r--r--wpa_supplicant/ctrl_iface_unix.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/wpa_supplicant/ctrl_iface_unix.c b/wpa_supplicant/ctrl_iface_unix.c
index 6f78aa5..9b596ba 100644
--- a/wpa_supplicant/ctrl_iface_unix.c
+++ b/wpa_supplicant/ctrl_iface_unix.c
@@ -346,7 +346,7 @@ wpa_supplicant_ctrl_iface_init(struct wpa_supplicant *wpa_s)
}
os_memset(&addr, 0, sizeof(addr));
-#ifdef __FreeBSD__
+#if defined(__FreeBSD__) || defined(__FreeBSD_kernel__)
addr.sun_len = sizeof(addr);
#endif /* __FreeBSD__ */
addr.sun_family = AF_UNIX;
@@ -645,7 +645,7 @@ wpa_supplicant_global_ctrl_iface_init(struct wpa_global *global)
}
os_memset(&addr, 0, sizeof(addr));
-#ifdef __FreeBSD__
+#if defined(__FreeBSD__) || defined(__FreeBSD_kernel__)
addr.sun_len = sizeof(addr);
#endif /* __FreeBSD__ */
addr.sun_family = AF_UNIX;