aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/libnl/libnl1-1.1/fix-ucred-declaration.patch
blob: e31b18e5a5f5613203797e56fa499b5b92f1af01 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
diff -pruN libnl-1.1.orig/include/netlink/handlers.h libnl-1.1/include/netlink/handlers.h
--- libnl-1.1.orig/include/netlink/handlers.h	2008-01-14 18:48:45.000000000 +0300
+++ libnl-1.1/include/netlink/handlers.h	2011-04-12 19:23:16.603292527 +0400
@@ -120,6 +120,7 @@ extern struct nl_cb *	nl_cb_alloc(enum n
 extern struct nl_cb *	nl_cb_clone(struct nl_cb *);
 extern struct nl_cb *	nl_cb_get(struct nl_cb *);
 extern void		nl_cb_put(struct nl_cb *);
+struct ucred;
 
 extern int  nl_cb_set(struct nl_cb *, enum nl_cb_type, enum nl_cb_kind,
 		      nl_recvmsg_msg_cb_t, void *);
diff -pruN libnl-1.1.orig/include/netlink/netlink.h libnl-1.1/include/netlink/netlink.h
--- libnl-1.1.orig/include/netlink/netlink.h	2008-01-14 18:48:45.000000000 +0300
+++ libnl-1.1/include/netlink/netlink.h	2011-04-12 19:23:51.370292658 +0400
@@ -50,6 +50,8 @@ extern int			nl_send_auto_complete(struc
 extern int			nl_send_simple(struct nl_handle *, int, int,
 					       void *, size_t);
 
+struct ucred;
+
 /* Receive */
 extern int			nl_recv(struct nl_handle *,
 					struct sockaddr_nl *, unsigned char **,