summaryrefslogtreecommitdiffstats
path: root/sbin/startslip
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/startslip
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/startslip')
-rw-r--r--sbin/startslip/startslip.c27
1 files changed, 15 insertions, 12 deletions
diff --git a/sbin/startslip/startslip.c b/sbin/startslip/startslip.c
index f5d121b..222d163 100644
--- a/sbin/startslip/startslip.c
+++ b/sbin/startslip/startslip.c
@@ -30,7 +30,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id: startslip.c,v 1.17 1995/09/20 04:56:09 ache Exp $
+ * $Id: startslip.c,v 1.18 1995/09/27 17:15:37 ache Exp $
*/
#ifndef lint
@@ -43,25 +43,28 @@ static char copyright[] =
static char sccsid[] = "@(#)startslip.c 8.1 (Berkeley) 6/5/93";
#endif /* not lint */
-#include <termios.h>
-#include <time.h>
-#include <sys/ioctl.h>
#include <sys/types.h>
+#include <sys/ioctl.h>
#include <sys/socket.h>
-#include <syslog.h>
-#include <netinet/in.h>
-#include <net/if.h>
-#include <net/if_slvar.h>
-#include <net/slip.h>
-#include <netdb.h>
+#include <sys/time.h>
+
#include <errno.h>
#include <fcntl.h>
+#include <paths.h>
+#include <netdb.h>
+#include <signal.h>
#include <stdio.h>
#include <stdlib.h>
-#include <signal.h>
#include <string.h>
+#include <syslog.h>
+#include <termios.h>
+#include <time.h>
#include <unistd.h>
-#include <paths.h>
+
+#include <netinet/in.h>
+#include <net/if.h>
+#include <net/if_slvar.h>
+#include <net/slip.h>
#define DEFAULT_BAUD B9600
int speed = DEFAULT_BAUD;
OpenPOWER on IntegriCloud