From 76cc4ace703ef4ec9dce351d02473ea3f35d3df8 Mon Sep 17 00:00:00 2001 From: Roy Marples Date: Thu, 24 Apr 2014 09:28:31 +0000 Subject: [PATCH] Work without IFA_F_OPTIMISTIC on Linux. --- ipv6.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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 -- 2.47.3