From: Roy Marples Date: Tue, 23 Dec 2014 09:40:14 +0000 (+0000) Subject: undef CMSG_SPACE and use our own define for platforms where CMSG_SPACE does X-Git-Tag: v6.7.0~31 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=71b002d46eb76e8ee3c6c1e6cf4d16a2da2aecff;p=thirdparty%2Fdhcpcd.git undef CMSG_SPACE and use our own define for platforms where CMSG_SPACE does not evaluate to a compile time constant, such as QNX. Thanks to Will Miles. --- diff --git a/ipv6.h b/ipv6.h index 8e46ebc2..794604bb 100644 --- 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