summaryrefslogtreecommitdiffstats
path: root/sys/net
diff options
context:
space:
mode:
authored <ed@FreeBSD.org>2011-10-21 12:58:34 +0000
committered <ed@FreeBSD.org>2011-10-21 12:58:34 +0000
commitb18bd1101c248172695f243f7b5e0684ca86676b (patch)
treeb83ec9de6e77f2e1d9573396deae5f5b824ae53f /sys/net
parent0391c17cc27b992bf21d809d8ab8ceaf2ba95226 (diff)
downloadFreeBSD-src-b18bd1101c248172695f243f7b5e0684ca86676b.zip
FreeBSD-src-b18bd1101c248172695f243f7b5e0684ca86676b.tar.gz
Add missing #includes.
According to POSIX, these two header files should be able to be included by themselves, not depending on other headers. The <net/if.h> header uses struct sockaddr when __BSD_VISIBLE=1, while <netinet/tcp.h> uses integer datatypes (u_int32_t, u_short, etc). MFC after: 2 months
Diffstat (limited to 'sys/net')
-rw-r--r--sys/net/if.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/net/if.h b/sys/net/if.h
index d1f3883..4f2dc6f 100644
--- a/sys/net/if.h
+++ b/sys/net/if.h
@@ -43,9 +43,11 @@
/*
* <net/if.h> does not depend on <sys/time.h> on most other systems. This
* helps userland compatibility. (struct timeval ifi_lastchange)
+ * The same holds for <sys/socket.h>. (struct sockaddr ifru_addr)
*/
#ifndef _KERNEL
#include <sys/time.h>
+#include <sys/socket.h>
#endif
struct ifnet;
OpenPOWER on IntegriCloud