From d0543e885a2b3edf70b98da24d1701eaa7f8e2e7 Mon Sep 17 00:00:00 2001 From: Joerg Wunsch Date: Sun, 30 Dec 2001 17:00:32 +0000 Subject: [PATCH] Fix compilation without INET (though not really tested yet without INET). Obtained from: NetBSD (rev 1.12) MFC after: 1 month --- sys/net/if_spppsubr.c | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/sys/net/if_spppsubr.c b/sys/net/if_spppsubr.c index 024d959fb780..a018500a0764 100644 --- a/sys/net/if_spppsubr.c +++ b/sys/net/if_spppsubr.c @@ -69,17 +69,19 @@ #include -#ifdef INET #include #include #include + +#ifdef INET #include #include -# if defined (__FreeBSD__) || defined (__OpenBSD__) -# include -# else -# include -# endif +#endif + +#if defined (__FreeBSD__) || defined (__OpenBSD__) +# include +#else +# include #endif #ifdef IPX @@ -275,6 +277,7 @@ static struct callout_handle keepalive_ch; #define SPP_ARGS(ifp) (ifp)->if_xname #endif +#ifdef INET /* * The following disgusting hack gets around the problem that IP TOS * can't be set yet. We want to put "interactive" traffic on a high @@ -288,6 +291,7 @@ static u_short interactive_ports[8] = { 0, 21, 0, 23, }; #define INTERACTIVE(p) (interactive_ports[(p) & 7] == (p)) +#endif /* almost every function needs these */ #define STDDCL \