summaryrefslogtreecommitdiffstats
path: root/src
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
commit3863f7bd6b991cc27ee29c764dab12b8902c61e4 (patch)
tree567bd16eeed83aa754c4360cdc7bbf15a6be8d51 /src
parentc1e483219a2e67cc7c1d55205494c1b6c0b9376e (diff)
downloaddhcpcd-3863f7bd6b991cc27ee29c764dab12b8902c61e4.tar.xz
Remove unsed define.
Diffstat (limited to 'src')
-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