[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



In 3.0, we get errors like:
/usr/include/linux/netlink.h:34: error: expected specifier-qualifier-list before 'sa_family_t'
---
 net/irda_setsockopt.c    | 1 +
 net/netlink_setsockopt.c | 1 +
 2 files changed, 2 insertions(+)

diff --git a/net/irda_setsockopt.c b/net/irda_setsockopt.c
index a5d96ec..e6255b2 100644
--- a/net/irda_setsockopt.c
+++ b/net/irda_setsockopt.c
@@ -1,4 +1,5 @@
 #include <stdlib.h>
+#include <sys/socket.h> /* old irda.h is broken */
 #include <linux/irda.h>
 #include "net.h"
 #include "maps.h"	// page_rand
diff --git a/net/netlink_setsockopt.c b/net/netlink_setsockopt.c
index c6e9297..549c3f0 100644
--- a/net/netlink_setsockopt.c
+++ b/net/netlink_setsockopt.c
@@ -1,4 +1,5 @@
 #include <stdlib.h>
+#include <sys/socket.h> /* old netlink.h is broken */
 #include <linux/netlink.h>
 #include "net.h"
 #include "maps.h"	// page_rand
-- 
1.8.4


--
To unsubscribe from this list: send the line "unsubscribe trinity" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux SCSI]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux