$NetBSD: patch-ab,v 1.3 2005/11/18 15:04:57 joerg Exp $

--- kppp/opener.cpp.orig	2005-11-16 16:45:28.000000000 +0000
+++ kppp/opener.cpp
@@ -68,7 +68,11 @@ extern "C" int _Precvmsg(int, void*, int
 #endif
 
 #ifndef HAVE_NET_IF_PPP_H
-#  ifdef HAVE_LINUX_IF_PPP_H
+#  if defined(__DragonFly__)
+#    include <net/ppp_layer/ppp_defs.h>
+#    include <net/if.h>
+#    include <net/ppp/if_ppp.h>
+#  elif defined(HAVE_LINUX_IF_PPP_H)
 #    include <linux/if_ppp.h>
 #  endif
 #else
