summaryrefslogtreecommitdiffstats
path: root/kppp
diff options
context:
space:
mode:
authorOBATA Akio <obache@wizdas.com>2019-04-20 17:20:12 +0900
committerSlávek Banko <slavek.banko@axis.cz>2019-04-21 15:35:21 +0200
commit279d0587697b172f4e5cf53fdb231c9937336966 (patch)
tree228ad6e44b9372329ae5632af084bc6be8648c66 /kppp
parentd2f98f542298c3af4627fd3e4dbec467d011409b (diff)
downloadtdenetwork-279d0587697b172f4e5cf53fdb231c9937336966.tar.gz
tdenetwork-279d0587697b172f4e5cf53fdb231c9937336966.zip
kppp: fix to build on NetBSD
Signed-off-by: OBATA Akio <obache@wizdas.com> (cherry picked from commit 48ca387b657bd2eebe01830986414947c1910ad2)
Diffstat (limited to 'kppp')
-rw-r--r--kppp/pppstats.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/kppp/pppstats.cpp b/kppp/pppstats.cpp
index eb209990..9dd6f366 100644
--- a/kppp/pppstats.cpp
+++ b/kppp/pppstats.cpp
@@ -56,9 +56,12 @@
#include <netinet/in.h>
#ifdef __DragonFly__
#include <net/ppp_layer/ppp_defs.h>
-#elif defined(__FreeBSD__)
+#elif defined(__FreeBSD__) || defined(__NetBSD__)
#include <net/if.h>
#include <net/ppp_defs.h>
+#ifdef __NetBSD__
+#include <net/if_ppp.h>
+#endif
#else
#include <net/ppp_defs.h>
#endif
@@ -294,7 +297,7 @@ bool PPPStats::doStats() {
#ifndef STREAMS
bool PPPStats::get_ppp_stats(struct ppp_stats *curp){
-# if !defined(__FreeBSD__)
+# if !defined(__FreeBSD__) && !defined(__NetBSD__)
struct ifpppstatsreq req;
if(s==0)