summaryrefslogtreecommitdiffstats
path: root/sys/net/if_spppsubr.c
diff options
context:
space:
mode:
authorjoerg <joerg@FreeBSD.org>2001-12-30 17:00:32 +0000
committerjoerg <joerg@FreeBSD.org>2001-12-30 17:00:32 +0000
commit746e1e7c09131cd6e458318d0ac57d5c309df81b (patch)
treed96f19a773a31e940a3baed48eb932e2eaa743c5 /sys/net/if_spppsubr.c
parent1e44bae71d0a89654071cd9855bc7239b83f5989 (diff)
downloadFreeBSD-src-746e1e7c09131cd6e458318d0ac57d5c309df81b.zip
FreeBSD-src-746e1e7c09131cd6e458318d0ac57d5c309df81b.tar.gz
Fix compilation without INET (though not really tested yet without
INET). Obtained from: NetBSD (rev 1.12) MFC after: 1 month
Diffstat (limited to 'sys/net/if_spppsubr.c')
-rw-r--r--sys/net/if_spppsubr.c16
1 files changed, 10 insertions, 6 deletions
diff --git a/sys/net/if_spppsubr.c b/sys/net/if_spppsubr.c
index 024d959..a018500 100644
--- a/sys/net/if_spppsubr.c
+++ b/sys/net/if_spppsubr.c
@@ -69,17 +69,19 @@
#include <machine/stdarg.h>
-#ifdef INET
#include <netinet/in.h>
#include <netinet/in_systm.h>
#include <netinet/in_var.h>
+
+#ifdef INET
#include <netinet/ip.h>
#include <netinet/tcp.h>
-# if defined (__FreeBSD__) || defined (__OpenBSD__)
-# include <netinet/if_ether.h>
-# else
-# include <net/ethertypes.h>
-# endif
+#endif
+
+#if defined (__FreeBSD__) || defined (__OpenBSD__)
+# include <netinet/if_ether.h>
+#else
+# include <net/ethertypes.h>
#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 \
OpenPOWER on IntegriCloud