[vpnc-devel] Patch to make vpnc work with DragonFly BSD

Hans-Werner Hilse hilse at web.de
Mon Jun 20 21:28:12 CEST 2005


Hello,

attached there's a small patch against 0.3.3 that adds support for
Dragonfly BSD (1.2 and 1.3 tested). Works flawlessly there.

Regards,

Hans-Werner Hilse

-------------- next part --------------
--- Makefile.O	2005-06-20 21:15:55.000000000 +0200
+++ Makefile	2005-06-20 21:17:04.000000000 +0200
@@ -33,6 +33,10 @@
 CFLAGS += -DSOCKADDR_IN_SIN_LEN -DHAVE_SA_LEN
 SYSDEP=sysdep-bsd.o
 endif
+ifeq ($(shell uname -s), DragonFly)
+CFLAGS += -DSOCKADDR_IN_SIN_LEN -DHAVE_SA_LEN -DDRAGONFLY_BSD
+SYSDEP=sysdep-bsd.o
+endif
 ifeq ($(shell uname -s), NetBSD)
 CFLAGS += -DSOCKADDR_IN_SIN_LEN -DHAVE_SA_LEN
 SYSDEP=sysdep-bsd.o
--- sysdep-bsd.c.O	2005-06-20 21:13:57.000000000 +0200
+++ sysdep-bsd.c	2005-06-20 21:15:38.000000000 +0200
@@ -28,8 +28,11 @@
 
 #include <sys/socket.h>
 #include <net/if.h>
-#include <net/if_tun.h>
-
+#ifdef DRAGONFLY_BSD
+# include <net/tun/if_tun.h>
+#else
+# include <net/if_tun.h>
+#endif
 #include "sysdep.h"
 
 /* 


More information about the vpnc-devel mailing list