summaryrefslogtreecommitdiffstats
path: root/sbin/slattach
diff options
context:
space:
mode:
authorwollman <wollman@FreeBSD.org>1996-12-10 17:11:53 +0000
committerwollman <wollman@FreeBSD.org>1996-12-10 17:11:53 +0000
commitd3ecee07b35f58cb9d8e5e3c25e923af0c1c5056 (patch)
tree1bb2cd09b3e27a462e04923aa2922608ee5ea899 /sbin/slattach
parent3f5b5465d429055a8f42863b35d3d19ec28dcd9b (diff)
downloadFreeBSD-src-d3ecee07b35f58cb9d8e5e3c25e923af0c1c5056.zip
FreeBSD-src-d3ecee07b35f58cb9d8e5e3c25e923af0c1c5056.tar.gz
Fix up programs which expect <net/if.h> to include <sys/time.h> to instead
do it themselves. (Some of these programs actually depended on this beyond compiling the definition of struct ifinfo!) Also fix up some other #include messes while we're at it.
Diffstat (limited to 'sbin/slattach')
-rw-r--r--sbin/slattach/slattach.c25
1 files changed, 14 insertions, 11 deletions
diff --git a/sbin/slattach/slattach.c b/sbin/slattach/slattach.c
index be4bf1a..b500a4b 100644
--- a/sbin/slattach/slattach.c
+++ b/sbin/slattach/slattach.c
@@ -42,26 +42,29 @@ static char copyright[] =
#ifndef lint
/*static char sccsid[] = "from: @(#)slattach.c 4.6 (Berkeley) 6/1/90";*/
-static char rcsid[] = "$Id";
+static char rcsid[] = "$Id$";
#endif /* not lint */
#include <sys/param.h>
#include <sys/ioctl.h>
-#include <termios.h>
#include <sys/socket.h>
-#include <netinet/in.h>
-#include <net/if.h>
-#include <net/slip.h>
-#include <net/if_slvar.h>
-#include <netdb.h>
+#include <sys/types.h>
+
#include <fcntl.h>
-#include <stdlib.h>
-#include <stdio.h>
-#include <unistd.h>
+#include <netdb.h>
#include <paths.h>
-#include <syslog.h>
#include <signal.h>
+#include <stdio.h>
+#include <stdlib.h>
#include <strings.h>
+#include <syslog.h>
+#include <termios.h>
+#include <unistd.h>
+
+#include <netinet/in.h>
+#include <net/if.h>
+#include <net/slip.h>
+#include <net/if_slvar.h>
#define DEFAULT_BAUD 9600
OpenPOWER on IntegriCloud