]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
Fix compile and wireless test on FreeBSD.
authorRoy Marples <roy@marples.name>
Tue, 2 Sep 2008 15:25:14 +0000 (15:25 +0000)
committerRoy Marples <roy@marples.name>
Tue, 2 Sep 2008 15:25:14 +0000 (15:25 +0000)
dhcpcd.h
if-options.h
net.c

index 061a1d1b8e834e456cce70507aab4da0175e3462..86aa49598914d9f3b6273e74318fc0d41cd899c8 100644 (file)
--- a/dhcpcd.h
+++ b/dhcpcd.h
@@ -28,6 +28,7 @@
 #ifndef DHCPCD_H
 #define DHCPCD_H
 
+#include <sys/socket.h>
 #include <net/if.h>
 
 #include <limits.h>
index 154aef2abbbdd6767595f5e8f753484bbe1eb967..11753f46a5c16ae2e045f00d333873c0d3581d2b 100644 (file)
@@ -28,6 +28,7 @@
 #ifndef IF_OPTIONS_H
 #define IF_OPTIONS_H
 
+#include <sys/socket.h>
 #include <net/if.h>
 #include <netinet/in.h>
 
diff --git a/net.c b/net.c
index fecfe8c74b3937d9d6e7a7253d98d03f55231ea1..9f58c97b234e711e0e75ed1b3c8a16ba10438813 100644 (file)
--- a/net.c
+++ b/net.c
@@ -267,7 +267,7 @@ init_interface(const char *ifname)
        strlcpy(ireq.i_name, ifname, sizeof(ireq.i_name));
        ireq.i_type = IEEE80211_IOC_NUMSSIDS;
        ireq.i_val = 3;
-       if ((x = ioctl(s, SIOCG80211, &ireq)) != -1)
+       if (ioctl(s, SIOCG80211, &ireq) != -1)
                iface->metric += 100; 
 #endif