[oe-commits] Khem Raj : linux-libc-headers_2.6.32.bb: New recipe.

git version control git at git.openembedded.org
Tue Dec 22 09:48:04 UTC 2009


Module: openembedded.git
Branch: martin_jansa/srcpv
Commit: a68775b0728d89f6927ffe623889732862c629cd
URL:    http://gitweb.openembedded.net/?p=openembedded.git&a=commit;h=a68775b0728d89f6927ffe623889732862c629cd

Author: Khem Raj <raj.khem at gmail.com>
Date:   Wed Dec 16 17:40:05 2009 -0800

linux-libc-headers_2.6.32.bb: New recipe.

* Patch to export sa_family_t to userspace.

Signed-off-by: Khem Raj <raj.khem at gmail.com>

---

 .../export_sa_family_t.patch                       |   22 ++++++++++++++++++++
 .../linux-libc-headers_2.6.32.bb                   |    1 +
 2 files changed, 23 insertions(+), 0 deletions(-)

diff --git a/recipes/linux-libc-headers/linux-libc-headers-2.6.32/export_sa_family_t.patch b/recipes/linux-libc-headers/linux-libc-headers-2.6.32/export_sa_family_t.patch
new file mode 100644
index 0000000..3c8137f
--- /dev/null
+++ b/recipes/linux-libc-headers/linux-libc-headers-2.6.32/export_sa_family_t.patch
@@ -0,0 +1,22 @@
+diff --git a/include/linux/socket.h b/include/linux/socket.h
+index 7b3aae2..ade87cf 100644
+--- a/include/linux/socket.h
++++ b/include/linux/socket.h
+@@ -16,6 +16,8 @@ struct __kernel_sockaddr_storage {
+ 				/* _SS_MAXSIZE value minus size of ss_family */
+ } __attribute__ ((aligned(_K_SS_ALIGNSIZE)));	/* force desired alignment */
+ 
++typedef unsigned short	sa_family_t;
++
+ #ifdef __KERNEL__
+ 
+ #include <asm/socket.h>			/* arch-dependent defines	*/
+@@ -34,8 +36,6 @@ extern void socket_seq_show(struct seq_file *seq);
+ # endif
+ #endif /* __KERNEL__ */
+ 
+-typedef unsigned short	sa_family_t;
+-
+ /*
+  *	1003.1g requires sa_family_t and that sa_data is char.
+  */
diff --git a/recipes/linux-libc-headers/linux-libc-headers_2.6.32.bb b/recipes/linux-libc-headers/linux-libc-headers_2.6.32.bb
index 6e1fdb0..4b98f05 100644
--- a/recipes/linux-libc-headers/linux-libc-headers_2.6.32.bb
+++ b/recipes/linux-libc-headers/linux-libc-headers_2.6.32.bb
@@ -7,6 +7,7 @@ PR = "r0"
 DEFAULT_PREFERENCE = "-1"
 
 SRC_URI = "${KERNELORG_MIRROR}/pub/linux/kernel/v2.6/linux-${PV}.tar.bz2 \
+	   file://export_sa_family_t.patch;patch=1 \
 	  "
 S = "${WORKDIR}/linux-${PV}"
 





More information about the Openembedded-commits mailing list