Mercurial > hg > dhcpcd
changeset 2154:c04ac211733e draft
Build fixes for only INET and only INET6
| author | Roy Marples <roy@marples.name> |
|---|---|
| date | Thu, 14 Nov 2013 15:48:07 +0000 |
| parents | 56758aee2985 |
| children | 4a46cea89a30 |
| files | ipv4.h net.c |
| diffstat | 2 files changed, 4 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/ipv4.h Thu Nov 14 10:29:14 2013 +0000 +++ b/ipv4.h Thu Nov 14 15:48:07 2013 +0000 @@ -97,9 +97,11 @@ ssize_t ipv4_getrawpacket(struct interface *, int, void *, ssize_t, int *); void ipv4_free(struct interface *); #else -#define ipv4_init() -1 +#define ipv4_init() (-1) #define ipv4_applyaddr(a) {} #define ipv4_freeroutes(a) {} +#define ipv4_free(a) {} +#define ipv4_addrexists(a) (0) #endif #endif
--- a/net.c Thu Nov 14 10:29:14 2013 +0000 +++ b/net.c Thu Nov 14 15:48:07 2013 +0000 @@ -230,6 +230,7 @@ const struct sockaddr_in *addr; const struct sockaddr_in *net; const struct sockaddr_in *dst; +#endif #ifdef INET6 const struct sockaddr_in6 *sin6; int ifa_flags; @@ -487,7 +488,6 @@ #endif } } -#endif freeifaddrs(ifaddrs);
