summaryrefslogtreecommitdiffstats
path: root/sys/netinet/if_ether.c
diff options
context:
space:
mode:
authorbde <bde@FreeBSD.org>1996-10-12 19:49:43 +0000
committerbde <bde@FreeBSD.org>1996-10-12 19:49:43 +0000
commit8c49d9975c6bbd7704d4d1247e57ce623ee4dbf9 (patch)
tree715865e54cd9bdfcb3c50cf8433ebb6486247758 /sys/netinet/if_ether.c
parenta642135de9649b69941f77b4bac4756d39929ece (diff)
downloadFreeBSD-src-8c49d9975c6bbd7704d4d1247e57ce623ee4dbf9.zip
FreeBSD-src-8c49d9975c6bbd7704d4d1247e57ce623ee4dbf9.tar.gz
Removed nested include if <sys/socket.h> from <net/if.h> and
<net/if_arp.h> and fixed the things that depended on it. The nested include just allowed unportable programs to compile and made my simple #include checking program report that networking code doesn't need to include <sys/socket.h>.
Diffstat (limited to 'sys/netinet/if_ether.c')
-rw-r--r--sys/netinet/if_ether.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/netinet/if_ether.c b/sys/netinet/if_ether.c
index d420c27..1d85ace 100644
--- a/sys/netinet/if_ether.c
+++ b/sys/netinet/if_ether.c
@@ -31,7 +31,7 @@
* SUCH DAMAGE.
*
* @(#)if_ether.c 8.1 (Berkeley) 6/10/93
- * $Id: if_ether.c,v 1.32 1996/06/20 22:53:08 fenner Exp $
+ * $Id: if_ether.c,v 1.33 1996/06/21 21:45:58 peter Exp $
*/
/*
@@ -47,6 +47,7 @@
#include <sys/systm.h>
#include <sys/mbuf.h>
#include <sys/malloc.h>
+#include <sys/socket.h>
#include <sys/syslog.h>
#include <net/if.h>
OpenPOWER on IntegriCloud