[oe-commits] Alexander Smirnov : Add 'ucred' structure declaration in netlink headers for the integrity

git version control git at git.openembedded.org
Thu Jun 16 14:40:58 UTC 2011


Module: openembedded.git
Branch: master
Commit: 9fef5f074ca2685f07c288ce7cc2799b757ab750
URL:    http://git.openembedded.org/?p=openembedded.git&a=commit;h=9fef5f074ca2685f07c288ce7cc2799b757ab750

Author: Alexander Smirnov <Alexander.Smirnov at siemens.com>
Date:   Tue Apr 12 19:50:59 2011 +0400

Add 'ucred' structure declaration in netlink headers for the integrity

Signed-off-by: Alexander Smirnov <alex.bluesman.smirnov at gmail.com>
Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov at gmail.com>

---

 .../libnl/libnl1-1.1/fix-ucred-declaration.patch   |   23 ++++++++++++++++++++
 recipes/libnl/libnl1_1.1.bb                        |    1 +
 2 files changed, 24 insertions(+), 0 deletions(-)

diff --git a/recipes/libnl/libnl1-1.1/fix-ucred-declaration.patch b/recipes/libnl/libnl1-1.1/fix-ucred-declaration.patch
new file mode 100644
index 0000000..e31b18e
--- /dev/null
+++ b/recipes/libnl/libnl1-1.1/fix-ucred-declaration.patch
@@ -0,0 +1,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 **,
diff --git a/recipes/libnl/libnl1_1.1.bb b/recipes/libnl/libnl1_1.1.bb
index 3569867..7ce3012 100644
--- a/recipes/libnl/libnl1_1.1.bb
+++ b/recipes/libnl/libnl1_1.1.bb
@@ -15,6 +15,7 @@ SRC_URI = "\
   file://netlink-local-fix.patch \
   file://dont-link-libnl-from-sysroot.patch \
   file://build.only.static.lib.patch \
+  file://fix-ucred-declaration.patch \
 "
 S = "${WORKDIR}/libnl-${PV}"
 





More information about the Openembedded-commits mailing list