From: Roy Marples Date: Thu, 3 Sep 2015 14:42:16 +0000 (+0000) Subject: Fix compile on Linux X-Git-Tag: v6.9.3~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e8a973f7aeda8fb02cc990dc04b45de930482296;p=thirdparty%2Fdhcpcd.git Fix compile on Linux --- diff --git a/dhcp.c b/dhcp.c index 5b065022..69a7ec96 100644 --- a/dhcp.c +++ b/dhcp.c @@ -2221,7 +2221,7 @@ dhcp_arp_bind(struct interface *ifp) return; } #else - if (ifo->options & DHCPCD_ARP) { + if (ifp->options->options & DHCPCD_ARP) { if (ia == NULL) { if ((astate = arp_new(ifp, &addr)) != NULL) { astate->probed_cb = dhcp_arp_probed; @@ -2554,7 +2554,9 @@ dhcp_handledhcp(struct interface *ifp, struct dhcp_message **dhcpp, unsigned int i; size_t auth_len; char *msg; +#ifdef IN_IFF_DUPLICATED struct ipv4_addr *ia; +#endif /* We may have found a BOOTP server */ if (get_option_uint8(ifp->ctx, &type, dhcp, DHO_MESSAGETYPE) == -1)