diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2021-09-03 08:18:32 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2021-09-03 08:18:32 +0000 |
commit | a9edf98e904bac98bd5a945993344824de12610b (patch) | |
tree | 37a537e2eacacdddf61aeff43625eb4ba6dc9a5a /usr.sbin/pppd | |
parent | fc6361408645caff4f05451d21b69d9b2a4be7cc (diff) |
sigh -- review one one pointless sys/param.h, and discover all the includes
are a mess.
Diffstat (limited to 'usr.sbin/pppd')
-rw-r--r-- | usr.sbin/pppd/sys-bsd.c | 25 |
1 files changed, 7 insertions, 18 deletions
diff --git a/usr.sbin/pppd/sys-bsd.c b/usr.sbin/pppd/sys-bsd.c index 4668c3ce6e4..456432762bb 100644 --- a/usr.sbin/pppd/sys-bsd.c +++ b/usr.sbin/pppd/sys-bsd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: sys-bsd.c,v 1.30 2020/12/29 19:45:28 benno Exp $ */ +/* $OpenBSD: sys-bsd.c,v 1.31 2021/09/03 08:18:31 deraadt Exp $ */ /* * sys-bsd.c - System-dependent procedures for setting up @@ -78,6 +78,12 @@ * TODO: */ +#include <sys/types.h> +#include <sys/ioctl.h> +#include <sys/socket.h> +#include <sys/time.h> +#include <sys/stat.h> + #include <stdio.h> #include <syslog.h> #include <string.h> @@ -89,11 +95,6 @@ #include <termios.h> #include <signal.h> #include <util.h> -#include <sys/ioctl.h> -#include <sys/types.h> -#include <sys/socket.h> -#include <sys/time.h> -#include <sys/stat.h> #include <ifaddrs.h> #ifdef PPP_FILTER @@ -105,19 +106,7 @@ #include <net/route.h> #include <net/if_dl.h> #include <netinet/in.h> - -#if RTM_VERSION >= 3 -#include <sys/param.h> -#if defined(NetBSD) && (NetBSD >= 199703) -#include <netinet/if_inarp.h> -#else /* NetBSD 1.2D or later */ -#if defined(__FreeBSD__) || defined(__OpenBSD__) #include <netinet/if_ether.h> -#else -#include <net/if_ether.h> -#endif -#endif -#endif #include "pppd.h" #include "fsm.h" |