summaryrefslogtreecommitdiff
path: root/security/ipsec-tools/patches/patch-ac
diff options
context:
space:
mode:
Diffstat (limited to 'security/ipsec-tools/patches/patch-ac')
-rw-r--r--security/ipsec-tools/patches/patch-ac21
1 files changed, 21 insertions, 0 deletions
diff --git a/security/ipsec-tools/patches/patch-ac b/security/ipsec-tools/patches/patch-ac
new file mode 100644
index 00000000000..d90cd1dc1ce
--- /dev/null
+++ b/security/ipsec-tools/patches/patch-ac
@@ -0,0 +1,21 @@
+$NetBSD: patch-ac,v 1.1 2004/11/11 11:50:20 grant Exp $
+
+--- src/racoon/grabmyaddr.c.orig 2004-10-29 21:50:04.000000000 +1000
++++ src/racoon/grabmyaddr.c
+@@ -37,8 +37,14 @@
+ #include <sys/ioctl.h>
+
+ #include <net/if.h>
+-#if defined(__FreeBSD__) && __FreeBSD__ >= 3
+-#include <net/if_var.h>
++#ifdef __FreeBSD__
++# if __FreeBSD__ >= 3
++# include <net/if_var.h>
++# endif
++# if __FreeBSD__ >= 5
++# include <netinet/in.h>
++# include <netinet6/in6_var.h>
++# endif
+ #endif
+ #ifdef __NetBSD__
+ #include <netinet/in.h>