From 5ed97aeeb603506d772d252f97b9b6e02d84ae9a Mon Sep 17 00:00:00 2001 From: Khem Raj Date: Mon, 6 Apr 2015 17:36:52 +0000 Subject: rpcbind: Fix build with musl most patches are just removing glibc'ism e.g. using sys/queue.h of cdefs.h the one patch which is specific to musl is housed with overrides Change-Id: Ia15bf6c9c4b562c9392a704ef92e9090aa5f6381 Signed-off-by: Khem Raj Signed-off-by: Richard Purdie --- .../rpcbind/rpcbind/remove-sys-queue.patch | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 meta/recipes-extended/rpcbind/rpcbind/remove-sys-queue.patch (limited to 'meta/recipes-extended/rpcbind/rpcbind/remove-sys-queue.patch') diff --git a/meta/recipes-extended/rpcbind/rpcbind/remove-sys-queue.patch b/meta/recipes-extended/rpcbind/rpcbind/remove-sys-queue.patch new file mode 100644 index 0000000000..84fc974fdf --- /dev/null +++ b/meta/recipes-extended/rpcbind/rpcbind/remove-sys-queue.patch @@ -0,0 +1,22 @@ +musl does not provide this header and here is reasoning +http://wiki.musl-libc.org/wiki/FAQ#Q:_why_is_sys.2Fqueue.h_not_included_.3F + +So include it only when __GLIBC__ is defined which is true for uclibc and glibc + +Signed-off-by: Khem Raj +Upstream-Status: Pending + +Index: rpcbind-0.2.2/src/util.c +=================================================================== +--- rpcbind-0.2.2.orig/src/util.c ++++ rpcbind-0.2.2/src/util.c +@@ -41,7 +41,9 @@ + + #include + #include ++#ifdef __GLIBC__ + #include ++#endif + #include + #include + #include -- cgit 1.2.3-korg