[PATCH 11/12] net/netlink_setsockopt.c: workaround for old headers

Mikko Rapeli <[email protected]>
Newsgroups org.kernel.vger.trinity
Message-ID <[email protected]>
Signed-off-by: Mikko Rapeli <[email protected]>
---
 net/netlink_setsockopt.c |    4 ++++
 1 file changed, 4 insertions(+)

diff --git a/net/netlink_setsockopt.c b/net/netlink_setsockopt.c
index 549c3f0..76e458f 100644
--- a/net/netlink_setsockopt.c
+++ b/net/netlink_setsockopt.c
@@ -1,5 +1,9 @@
 #include <stdlib.h>
 #include <sys/socket.h> /* old netlink.h is broken */
+
+/* For sa_family_t needed by <linux/netlink.h> */
+#include <netinet/in.h>
+
 #include <linux/netlink.h>
 #include "net.h"
 #include "maps.h"	// page_rand
-- 
1.7.9.5
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.