From: Roy Marples Date: Thu, 23 Apr 2020 13:40:03 +0000 (+0000) Subject: Remove unsed define. X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3863f7bd6b991cc27ee29c764dab12b8902c61e4;p=thirdparty%2Fdhcpcd.git Remove unsed define. --- 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