summaryrefslogtreecommitdiffstats
path: root/src/if.c
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2020-04-23 13:40:03 +0000
committerRoy Marples <roy@marples.name>2020-04-23 13:40:03 +0000
commit910c7cd1e8b589e935f6d405d0c850b62656f3cc (patch)
tree567bd16eeed83aa754c4360cdc7bbf15a6be8d51 /src/if.c
parent0bf8e505a463196aac78a9e3b054c25b122983ab (diff)
downloaddhcpcd-910c7cd1e8b589e935f6d405d0c850b62656f3cc.tar.xz
Remove unsed define.
Diffstat (limited to 'src/if.c')
-rw-r--r--src/if.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/src/if.c b/src/if.c
index 7471df61..1d099b6d 100644
--- a/src/if.c
+++ b/src/if.c
@@ -75,12 +75,6 @@
#include "logerr.h"
#include "privsep.h"
-#ifdef __sun
-/* It has the ioctl, but the member is missing from the struct?
- * No matter, our getifaddrs foo in if-sun.c will DTRT. */
-#undef SIOCGIFHWADDR
-#endif
-
void
if_free(struct interface *ifp)
{
@@ -390,7 +384,7 @@ if_discover(struct dhcpcd_ctx *ctx, struct ifaddrs **ifaddrs,
#elif AF_PACKET
const struct sockaddr_ll *sll;
#endif
-#if defined(SIOCGIFPRIORITY) || defined(SIOCGIFHWADDR)
+#if defined(SIOCGIFPRIORITY)
struct ifreq ifr;
#endif