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)
This commit is contained in:
John Marino 2015-02-04 12:25:36 +00:00
parent ee97fcf29a
commit bfb91f9442
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=378395

View file

@ -1,13 +1,18 @@
--- sysdep.h.orig 2009-03-25 03:28:26.000000000 -0400 --- sysdep.h.orig 2008-11-19 20:36:12 UTC
+++ sysdep.h 2009-03-25 03:29:18.000000000 -0400 +++ sysdep.h
@@ -86,6 +86,10 @@ @@ -86,6 +86,7 @@ int tun_get_hwaddr(int fd, char *dev, ui
#define HAVE_FGETLN 1 #define HAVE_FGETLN 1
#define HAVE_UNSETENV 1 #define HAVE_UNSETENV 1
#define HAVE_SETENV 1 #define HAVE_SETENV 1
+#include <sys/param.h> +#define HAVE_GETLINE 1
+#if __FreeBSD_version >= 800067 #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 #endif
/***************************************************************************/ /***************************************************************************/