[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    KDE/kdenetwork/kppp
From:       Hasso Tepper <hasso () kde ! org>
Date:       2008-01-21 10:37:11
Message-ID: 1200911831.062205.20585.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 764273 by hasso:

Make kppp at least compile in DragonFly BSD.


 M  +6 -0      configure.in.in  
 M  +5 -1      opener.cpp  
 M  +7 -0      pppstats.cpp  


--- trunk/KDE/kdenetwork/kppp/configure.in.in #764272:764273
@@ -11,7 +11,11 @@
 #endif
 #include <unistd.h>
 #include <arpa/inet.h>
+#ifdef __DragonFly__
+#include <net/ppp_layer/ppp_defs.h>
+#else
 #include <net/ppp_defs.h>
+#endif
 #include <netinet/in.h>
 
 #ifdef __svr4__
@@ -27,6 +31,8 @@
 
     #if defined(linux)
       #include <linux/if_ppp.h>
+    #elif defined(__DragonFly__)
+      #include <net/ppp/if_ppp.h>
     #else
       #include <net/if_ppp.h>                /* BSD, NeXT, etc. */
     #endif
--- trunk/KDE/kdenetwork/kppp/opener.cpp #764272:764273
@@ -64,7 +64,11 @@
 #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
--- trunk/KDE/kdenetwork/kppp/pppstats.cpp #764272:764273
@@ -54,7 +54,11 @@
 #include <arpa/inet.h>
 #include <unistd.h>
 #include <netinet/in.h>
+#ifdef __DragonFly__
+#include <net/ppp_layer/ppp_defs.h>
+#else
 #include <net/ppp_defs.h>
+#endif
 
 #include "pppstats.h"
 
@@ -69,6 +73,9 @@
   #ifdef HAVE_LINUX_IF_PPP_H
    #include <linux/if.h>
    #include <linux/if_ppp.h>
+  #elif defined(__DragonFly__)
+   #include <net/if.h>
+   #include <net/ppp/if_ppp.h>
   #endif
  #else
   #include <net/if.h>
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic