]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
Fix compile without IPv6 on systems that do not define ALIGN
authorRoy Marples <roy@marples.name>
Sat, 4 Jul 2020 12:21:09 +0000 (13:21 +0100)
committerRoy Marples <roy@marples.name>
Sat, 4 Jul 2020 12:21:09 +0000 (13:21 +0100)
src/dhcpcd.h

index 61a6a08144dad0f6d9ba94abadccee24c7216c3e..d9719c0a4a7c99a805d1b9c7e7eb28a2ec453893 100644 (file)
@@ -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 {