summaryrefslogtreecommitdiffstats
path: root/libexec/bootpd
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 /libexec/bootpd
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 'libexec/bootpd')
-rw-r--r--libexec/bootpd/getether.c3
-rw-r--r--libexec/bootpd/getif.c4
-rw-r--r--libexec/bootpd/lookup.c4
-rw-r--r--libexec/bootpd/rtmsg.c3
-rw-r--r--libexec/bootpd/tools/bootptest/print-bootp.c4
5 files changed, 7 insertions, 11 deletions
diff --git a/libexec/bootpd/getether.c b/libexec/bootpd/getether.c
index c396c81..dc3a88c 100644
--- a/libexec/bootpd/getether.c
+++ b/libexec/bootpd/getether.c
@@ -7,7 +7,7 @@
* If you figure out how to do this on another system,
* please let me know. <gwr@mc.com>
*
- * $Id$
+ * $Id: getether.c,v 1.4 1996/09/22 21:52:09 wosch Exp $
*/
#include <sys/types.h>
@@ -111,6 +111,7 @@ getether(ifname, eap)
#if defined(__FreeBSD__) || defined(__NetBSD__)
/* Thanks to John Brezak <brezak@ch.hp.com> for this code. */
#include <sys/ioctl.h>
+#include <sys/time.h>
#include <net/if.h>
#include <net/if_dl.h>
#include <net/if_types.h>
diff --git a/libexec/bootpd/getif.c b/libexec/bootpd/getif.c
index eeff50f..2d72909 100644
--- a/libexec/bootpd/getif.c
+++ b/libexec/bootpd/getif.c
@@ -1,7 +1,7 @@
/*
* getif.c : get an interface structure
*
- * $Id$
+ * $Id: getif.c,v 1.3 1996/09/22 21:52:12 wosch Exp $
*/
#include <sys/types.h>
@@ -15,9 +15,7 @@
#include <sys/stropts.h>
#endif
-#ifdef _AIX32
#include <sys/time.h> /* for struct timeval in net/if.h */
-#endif
#include <net/if.h> /* for struct ifreq */
#include <netinet/in.h>
diff --git a/libexec/bootpd/lookup.c b/libexec/bootpd/lookup.c
index ed1a27c..b5b51b5 100644
--- a/libexec/bootpd/lookup.c
+++ b/libexec/bootpd/lookup.c
@@ -1,15 +1,13 @@
/*
* lookup.c - Lookup IP address, HW address, netmask
*
- * $Id$
+ * $Id: lookup.c,v 1.2 1996/09/22 21:52:21 wosch Exp $
*/
#include <sys/types.h>
#include <sys/socket.h>
-#ifdef _AIX32
#include <sys/time.h> /* for struct timeval in net/if.h */
-#endif
#include <net/if.h>
#include <netinet/in.h>
diff --git a/libexec/bootpd/rtmsg.c b/libexec/bootpd/rtmsg.c
index 5942b22..0338a95 100644
--- a/libexec/bootpd/rtmsg.c
+++ b/libexec/bootpd/rtmsg.c
@@ -39,7 +39,7 @@
/*
* from arp.c 8.2 (Berkeley) 1/2/94
- * $Id: rtmsg.c,v 1.3 1995/01/30 11:11:43 dfr Exp $
+ * $Id: rtmsg.c,v 1.4 1995/05/30 05:45:49 rgrimes Exp $
*/
#include <sys/param.h>
@@ -51,6 +51,7 @@
#include <sys/socket.h>
#include <sys/filio.h>
+#include <sys/time.h>
#include <net/if.h>
#include <net/if_dl.h>
diff --git a/libexec/bootpd/tools/bootptest/print-bootp.c b/libexec/bootpd/tools/bootptest/print-bootp.c
index 8390321..b51f42c 100644
--- a/libexec/bootpd/tools/bootptest/print-bootp.c
+++ b/libexec/bootpd/tools/bootptest/print-bootp.c
@@ -23,7 +23,7 @@
* This file was copied from tcpdump-2.1.1 and modified.
* There is an e-mail list for tcpdump: <tcpdump@ee.lbl.gov>
*
- * $Id$
+ * $Id: print-bootp.c,v 1.2 1996/09/22 21:52:58 wosch Exp $
*/
#include <stdio.h>
@@ -32,9 +32,7 @@
#include <sys/types.h>
#include <sys/socket.h>
-#ifdef _AIX32
#include <sys/time.h> /* for struct timeval in net/if.h */
-#endif
#include <net/if.h>
#include <netinet/in.h>
OpenPOWER on IntegriCloud