[PATCH 09/12] net/irda_setsockopt.c: workaround for old irda headers

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

diff --git a/net/irda_setsockopt.c b/net/irda_setsockopt.c
index e6255b2..692ef52 100644
--- a/net/irda_setsockopt.c
+++ b/net/irda_setsockopt.c
@@ -1,5 +1,9 @@
 #include <stdlib.h>
 #include <sys/socket.h> /* old irda.h is broken */
+
+/* old irda.h does not include something which defines sa_family_t */
+#include <netinet/in.h>
+
 #include <linux/irda.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.