From 279d0587697b172f4e5cf53fdb231c9937336966 Mon Sep 17 00:00:00 2001 From: OBATA Akio Date: Sat, 20 Apr 2019 17:20:12 +0900 Subject: [PATCH] kppp: fix to build on NetBSD Signed-off-by: OBATA Akio (cherry picked from commit 48ca387b657bd2eebe01830986414947c1910ad2) --- kppp/pppstats.cpp | 7 +++++-- 1 file 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 #ifdef __DragonFly__ #include -#elif defined(__FreeBSD__) +#elif defined(__FreeBSD__) || defined(__NetBSD__) #include #include +#ifdef __NetBSD__ +#include +#endif #else #include #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)