[klibc] [PATCH 14/16] Include sys/socket.h from net/if_arp.h

Mike Waychison mikew at google.com
Mon Mar 1 23:46:40 PST 2010


if_arp.h requires a definition for struct sockaddr.  Pull in sys/socket.h to
get one.

Signed-off-by: Mike Waychison <mikew at google.com>
---
 usr/include/net/if_arp.h |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/usr/include/net/if_arp.h b/usr/include/net/if_arp.h
index a25f1b4..6261eeb 100644
--- a/usr/include/net/if_arp.h
+++ b/usr/include/net/if_arp.h
@@ -1 +1,3 @@
+/* if_arp.h needs sockaddr */
+#include <sys/socket.h>
 #include <linux/if_arp.h>



More information about the klibc mailing list