From: Roy Marples Date: Sat, 4 Jul 2020 12:21:09 +0000 (+0100) Subject: Fix compile without IPv6 on systems that do not define ALIGN X-Git-Tag: v9.2.0~44 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6b22f54da5f808e171000b9051a2453a504fe22a;p=thirdparty%2Fdhcpcd.git Fix compile without IPv6 on systems that do not define ALIGN --- diff --git a/src/dhcpcd.h b/src/dhcpcd.h index 61a6a081..d9719c0a 100644 --- a/src/dhcpcd.h +++ b/src/dhcpcd.h @@ -96,7 +96,6 @@ TAILQ_HEAD(if_head, interface); #include "privsep.h" -#ifdef INET6 /* dhcpcd requires CMSG_SPACE to evaluate to a compile time constant. */ #if defined(__QNX) || \ (defined(__NetBSD_Version__) && __NetBSD_Version__ < 600000000) @@ -113,10 +112,6 @@ TAILQ_HEAD(if_head, interface); #define CMSG_SPACE(len) (ALIGN(sizeof(struct cmsghdr)) + ALIGN(len)) #endif -#define IP6BUFLEN (CMSG_SPACE(sizeof(struct in6_pktinfo)) + \ - CMSG_SPACE(sizeof(int))) -#endif - struct passwd; struct dhcpcd_ctx {