]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
undef CMSG_SPACE and use our own define for platforms where CMSG_SPACE does
authorRoy Marples <roy@marples.name>
Tue, 23 Dec 2014 09:40:14 +0000 (09:40 +0000)
committerRoy Marples <roy@marples.name>
Tue, 23 Dec 2014 09:40:14 +0000 (09:40 +0000)
not evaluate to a compile time constant, such as QNX.
Thanks to Will Miles.

ipv6.h

diff --git a/ipv6.h b/ipv6.h
index 8e46ebc2a255bd359e3e2329a696f96119a683e3..794604bb77d64a1f92564e7700f432f8f6a9d437 100644 (file)
--- a/ipv6.h
+++ b/ipv6.h
@@ -143,6 +143,11 @@ struct ipv6_state {
 #define IPV6_CSTATE(ifp)                                                      \
        ((const struct ipv6_state *)(ifp)->if_data[IF_DATA_IPV6])
 
+/* dhcpcd requires CMSG_SPACE to evaluate to a compile time constant. */
+#ifdef __QNX__
+#undef CMSG_SPACE
+#endif
+
 #ifndef ALIGNBYTES
 #define ALIGNBYTES (sizeof(int) - 1)
 #endif