From 910c7cd1e8b589e935f6d405d0c850b62656f3cc Mon Sep 17 00:00:00 2001 From: Roy Marples Date: Thu, 23 Apr 2020 13:40:03 +0000 Subject: [PATCH] Remove unsed define. --- src/if.c | 8 +------- 1 file changed, 1 insertion(+), 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 -- 2.47.3