summaryrefslogtreecommitdiffstats
path: root/sys/net
diff options
context:
space:
mode:
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