aboutsummaryrefslogtreecommitdiffstats
path: root/package/libnl/patches/140-fix-linking-libnl-genl.patch
blob: ea2554cd74ab98c6b5405c6dd6b91b9788bd6fa0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
diff -U 3 -H -d -r -N -- libnl-1.1.o/include/netlink/genl/mngt.h libnl-1.1/include/netlink/genl/mngt.h
--- libnl-1.1.o/include/netlink/genl/mngt.h	2008-01-14 18:48:45.000000000 +0300
+++ libnl-1.1/include/netlink/genl/mngt.h	2008-08-18 19:18:54.000000000 +0400
@@ -22,6 +22,15 @@
 
 struct nl_cache_ops;
 
+struct genl_info
+{
+        struct sockaddr_nl *    who;
+        struct nlmsghdr *       nlh;
+	struct genlmsghdr *     genlhdr;
+	void *                  userhdr;
+	struct nlattr **        attrs;
+};
+
 /**
  * @ingroup genl_mngt
  * Generic Netlink Command
diff -U 3 -H -d -r -N -- libnl-1.1.o/include/netlink-types.h libnl-1.1/include/netlink-types.h
--- libnl-1.1.o/include/netlink-types.h	2008-01-14 18:48:45.000000000 +0300
+++ libnl-1.1/include/netlink-types.h	2008-08-18 19:18:30.000000000 +0400
@@ -95,15 +95,6 @@
 
 struct nl_parser_param;
 
-struct genl_info
-{
-	struct sockaddr_nl *	who;
-	struct nlmsghdr *	nlh;
-	struct genlmsghdr *	genlhdr;
-	void *			userhdr;
-	struct nlattr **	attrs;
-};
-
 #define LOOSE_FLAG_COMPARISON	1
 
 #define NL_OBJ_MARK		1
diff -U 3 -H -d -r -N -- libnl-1.1.o/src/nl-list-caches.c libnl-1.1/src/nl-list-caches.c
--- libnl-1.1.o/src/nl-list-caches.c	2008-01-14 18:48:45.000000000 +0300
+++ libnl-1.1/src/nl-list-caches.c	2008-08-18 19:20:05.000000000 +0400
@@ -10,6 +10,7 @@
  */
 
 #include "utils.h"
+#include <netlink-local.h>
 
 static void print_usage(void)
 {
diff -U 3 -H -d -r -N -- libnl-1.1.o/src/utils.c libnl-1.1/src/utils.c
--- libnl-1.1.o/src/utils.c	2008-01-14 18:48:45.000000000 +0300
+++ libnl-1.1/src/utils.c	2008-08-18 19:20:39.000000000 +0400
@@ -12,6 +12,7 @@
 #include "utils.h"
 
 #include <stdlib.h>
+#include <stdarg.h>
 
 int nltool_init(int argc, char *argv[])
 {
diff -U 3 -H -d -r -N -- libnl-1.1.o/src/utils.h libnl-1.1/src/utils.h
--- libnl-1.1.o/src/utils.h	2008-01-14 18:48:45.000000000 +0300
+++ libnl-1.1/src/utils.h	2008-08-18 19:21:11.000000000 +0400
@@ -22,7 +22,6 @@
 #include <sys/types.h>
 #include <sys/socket.h>
 
-#include <netlink-local.h>
 #include <netlink/netlink.h>
 #include <netlink/utils.h>
 #include <netlink/addr.h>