$NetBSD: patch-ac,v 1.5 2011/02/12 16:47:44 asau Exp $

--- pptpctrl.c.orig	2006-12-08 03:01:40.000000000 +0300
+++ pptpctrl.c	2011-02-12 17:02:53.000000000 +0300
@@ -32,6 +32,11 @@
 #include <netinet/in.h>
 #include <arpa/inet.h>
 #ifdef HAVE_OPENPTY
+#if defined(__DragonFly__)
+#include <libutil.h>
+#else
+#include <util.h>
+#endif
 #ifdef HAVE_PTY_H
 #include <pty.h>
 #include <termios.h>
@@ -773,7 +778,7 @@ static void launch_pppd(char **pppaddrs,
 
         if (pptp_logwtmp) {
                  pppd_argv[an++] = "plugin";
-                 pppd_argv[an++] = "/usr/lib/pptpd/pptpd-logwtmp.so";
+                 pppd_argv[an++] = "@@PREFIX@@/lib/pptpd/pptpd-logwtmp.so";
                  pppd_argv[an++] = "pptpd-original-ip";
                  pppd_argv[an++] = inet_ntoa(inetaddrs[1]);
         }
