fix compilation without INET

This commit is contained in:
itojun 2000-10-02 03:53:47 +00:00
parent 1af3d80bce
commit b8453a0291

View File

@ -1,4 +1,4 @@
/* $NetBSD: if_spppsubr.c,v 1.11 2000/07/02 17:38:09 sommerfeld Exp $ */
/* $NetBSD: if_spppsubr.c,v 1.12 2000/10/02 03:53:47 itojun Exp $ */
/*
* Synchronous PPP/Cisco link level subroutines.
@ -61,20 +61,18 @@
#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>
#endif
#if defined (__FreeBSD__) || defined (__OpenBSD__)
#include <netinet/if_ether.h>
#else
#include <net/ethertypes.h>
#endif
#else
#error Huh? sppp without INET?
#endif
#ifdef IPX
#include <netipx/ipx.h>
@ -258,6 +256,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
@ -271,6 +270,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 \