changeset 5405:73670865498e draft

Fix compile without IPv6 on systems that do not define ALIGN
author Roy Marples <roy@marples.name>
date Sat, 04 Jul 2020 13:21:09 +0100
parents ad6e9cbeb6e8
children c03103d18249
files src/dhcpcd.h
diffstat 1 files changed, 0 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/src/dhcpcd.h	Fri Jul 03 11:41:23 2020 +0100
+++ b/src/dhcpcd.h	Sat Jul 04 13:21:09 2020 +0100
@@ -96,7 +96,6 @@
 
 #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 @@
 #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 {