]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
Remove unsed define.
authorRoy Marples <roy@marples.name>
Thu, 23 Apr 2020 13:40:03 +0000 (13:40 +0000)
committerRoy Marples <roy@marples.name>
Thu, 23 Apr 2020 13:40:03 +0000 (13:40 +0000)
src/if.c

index 7471df616ed6ad93804fbf3fc6701306ea64f06a..1d099b6d4ed176b14a2036caadfcd86862c7abb7 100644 (file)
--- a/src/if.c
+++ b/src/if.c
 #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