]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
Work without IFA_F_OPTIMISTIC on Linux.
authorRoy Marples <roy@marples.name>
Thu, 24 Apr 2014 09:28:31 +0000 (09:28 +0000)
committerRoy Marples <roy@marples.name>
Thu, 24 Apr 2014 09:28:31 +0000 (09:28 +0000)
ipv6.c

diff --git a/ipv6.c b/ipv6.c
index 3d502b8a09b4c50bd918d8aefeaf18451eb31e0c..5b18f850310c98726b7144a76224833b2777bbee 100644 (file)
--- a/ipv6.c
+++ b/ipv6.c
 #  include <asm/types.h> /* for systems with broken headers */
 #  include <linux/rtnetlink.h>
    /* 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