From: Roy Marples Date: Thu, 24 Apr 2014 09:28:31 +0000 (+0000) Subject: Work without IFA_F_OPTIMISTIC on Linux. X-Git-Tag: v6.4.0~101 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=76cc4ace703ef4ec9dce351d02473ea3f35d3df8;p=thirdparty%2Fdhcpcd.git Work without IFA_F_OPTIMISTIC on Linux. --- diff --git a/ipv6.c b/ipv6.c index 3d502b8a..5b18f850 100644 --- a/ipv6.c +++ b/ipv6.c @@ -36,7 +36,11 @@ # include /* for systems with broken headers */ # include /* Match Linux defines to BSD */ -# define IN6_IFF_TENTATIVE (IFA_F_TENTATIVE | IFA_F_OPTIMISTIC) +# ifdef IFA_F_OPTIMISTIC +# define IN6_IFF_TENTATIVE (IFA_F_TENTATIVE | IFA_F_OPTIMISTIC) +# else +# define IN6_IFF_TENTATIVE IFA_F_TENTATIVE +# endif # define IN6_IFF_DUPLICATED IFA_F_DADFAILED # define IN6_IFF_DETACHED 0 #else