kppp: fix to build on NetBSD

Signed-off-by: OBATA Akio <obache@wizdas.com>
pull/9/head
OBATA Akio 6 years ago committed by TDE Gitea
parent 7537d9ef7d
commit 48ca387b65

@ -56,9 +56,12 @@
#include <netinet/in.h> #include <netinet/in.h>
#ifdef __DragonFly__ #ifdef __DragonFly__
#include <net/ppp_layer/ppp_defs.h> #include <net/ppp_layer/ppp_defs.h>
#elif defined(__FreeBSD__) #elif defined(__FreeBSD__) || defined(__NetBSD__)
#include <net/if.h> #include <net/if.h>
#include <net/ppp_defs.h> #include <net/ppp_defs.h>
#ifdef __NetBSD__
#include <net/if_ppp.h>
#endif
#else #else
#include <net/ppp_defs.h> #include <net/ppp_defs.h>
#endif #endif
@ -294,7 +297,7 @@ bool PPPStats::doStats() {
#ifndef STREAMS #ifndef STREAMS
bool PPPStats::get_ppp_stats(struct ppp_stats *curp){ bool PPPStats::get_ppp_stats(struct ppp_stats *curp){
# if !defined(__FreeBSD__) # if !defined(__FreeBSD__) && !defined(__NetBSD__)
struct ifpppstatsreq req; struct ifpppstatsreq req;
if(s==0) if(s==0)

Loading…
Cancel
Save