From: Roy Marples Date: Fri, 15 May 2015 15:23:42 +0000 (+0000) Subject: Fix building without INET or INET6. X-Git-Tag: v6.9.0~11 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3af283f66243be1d7c49ba72b581efc74f54895c;p=thirdparty%2Fdhcpcd.git Fix building without INET or INET6. --- diff --git a/ipv4.h b/ipv4.h index f6d5d982..08b1c213 100644 --- a/ipv4.h +++ b/ipv4.h @@ -108,7 +108,7 @@ void ipv4_ctxfree(struct dhcpcd_ctx *); #define ipv4_freeroutes(a) {} #define ipv4_free(a) {} #define ipv4_ctxfree(a) {} -#define ipv4_addrexists(a, b) (0) +#define ipv4_ifaddrexists(a) (0) #endif #endif diff --git a/ipv6.h b/ipv6.h index 83710c47..7fedd111 100644 --- a/ipv6.h +++ b/ipv6.h @@ -279,6 +279,7 @@ void ipv6_buildroutes(struct dhcpcd_ctx *); #else #define ipv6_init(a) (NULL) #define ipv6_start(a) (-1) +#define ipv6_iffindaddr(a, b) (NULL) #define ipv6_free_ll_callbacks(a) {} #define ipv6_free(a) {} #define ipv6_drop(a) {} diff --git a/ipv6nd.h b/ipv6nd.h index 4124b3b2..a8e20544 100644 --- a/ipv6nd.h +++ b/ipv6nd.h @@ -117,7 +117,6 @@ void ipv6nd_drop(struct interface *); void ipv6nd_neighbour(struct dhcpcd_ctx *, struct in6_addr *, int); #else #define ipv6nd_startrs(a) {} -#define ipv6nd_findaddr(a, b, c) (0) #define ipv6nd_free(a) {} #define ipv6nd_hasra(a) (0) #define ipv6nd_dadcompleted(a) (0)