aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormarino <marino@FreeBSD.org>2015-02-04 20:25:36 +0800
committermarino <marino@FreeBSD.org>2015-02-04 20:25:36 +0800
commit923604c26a07f2cbeb00a7eb54db76aa5ad4a059 (patch)
tree25765c9c3e9174421a47cce0a241548effeb6523
parent8066e3fa87a3b8c9e9973f9b93b9c62c7361f11e (diff)
downloadfreebsd-ports-graphics-923604c26a07f2cbeb00a7eb54db76aa5ad4a059.tar.gz
freebsd-ports-graphics-923604c26a07f2cbeb00a7eb54db76aa5ad4a059.tar.zst
freebsd-ports-graphics-923604c26a07f2cbeb00a7eb54db76aa5ad4a059.zip
security/vpnc: Update sysdep.h patch to support dragonfly
While here, remove the __FreeBSD_version check as this will always pass on supported releases of FreeBSD. Approved by: blanket (non-invasive DragonFly support)
-rw-r--r--security/vpnc/files/patch-sysdep.h19
1 files changed, 12 insertions, 7 deletions
diff --git a/security/vpnc/files/patch-sysdep.h b/security/vpnc/files/patch-sysdep.h
index 7817f3dcdd7..a80eb49420d 100644
--- a/security/vpnc/files/patch-sysdep.h
+++ b/security/vpnc/files/patch-sysdep.h
@@ -1,13 +1,18 @@
---- sysdep.h.orig 2009-03-25 03:28:26.000000000 -0400
-+++ sysdep.h 2009-03-25 03:29:18.000000000 -0400
-@@ -86,6 +86,10 @@
+--- sysdep.h.orig 2008-11-19 20:36:12 UTC
++++ sysdep.h
+@@ -86,6 +86,7 @@ int tun_get_hwaddr(int fd, char *dev, ui
#define HAVE_FGETLN 1
#define HAVE_UNSETENV 1
#define HAVE_SETENV 1
-+#include <sys/param.h>
-+#if __FreeBSD_version >= 800067
-+#define HAVE_GETLINE 1
-+#endif
++#define HAVE_GETLINE 1
+ #endif
+
+ /***************************************************************************/
+@@ -97,6 +98,7 @@ int tun_get_hwaddr(int fd, char *dev, ui
+ #define HAVE_FGETLN 1
+ #define HAVE_UNSETENV 1
+ #define HAVE_SETENV 1
++#define HAVE_GETLINE 1
#endif
/***************************************************************************/