summaryrefslogtreecommitdiffstats
path: root/meta/recipes-extended/rpcbind/rpcbind/remove-sys-queue.patch
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2015-04-06 17:36:52 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-04-08 10:53:31 +0100
commitca6b43cd8d5fb69f07b75f1de92f46e8767f9c99 (patch)
tree084b35177bf95e8cd26e827f41676bebb7a189b1 /meta/recipes-extended/rpcbind/rpcbind/remove-sys-queue.patch
parent9a2768b013cb28de604023752c2f62bd91226184 (diff)
downloadpoky-ca6b43cd8d5fb69f07b75f1de92f46e8767f9c99.tar.gz
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 (From OE-Core rev: 5ed97aeeb603506d772d252f97b9b6e02d84ae9a) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-extended/rpcbind/rpcbind/remove-sys-queue.patch')
-rw-r--r--meta/recipes-extended/rpcbind/rpcbind/remove-sys-queue.patch22
1 files changed, 22 insertions, 0 deletions
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 @@
1musl does not provide this header and here is reasoning
2http://wiki.musl-libc.org/wiki/FAQ#Q:_why_is_sys.2Fqueue.h_not_included_.3F
3
4So include it only when __GLIBC__ is defined which is true for uclibc and glibc
5
6Signed-off-by: Khem Raj <raj.khem@gmail.com>
7Upstream-Status: Pending
8
9Index: rpcbind-0.2.2/src/util.c
10===================================================================
11--- rpcbind-0.2.2.orig/src/util.c
12+++ rpcbind-0.2.2/src/util.c
13@@ -41,7 +41,9 @@
14
15 #include <sys/types.h>
16 #include <sys/socket.h>
17+#ifdef __GLIBC__
18 #include <sys/queue.h>
19+#endif
20 #include <net/if.h>
21 #include <netinet/in.h>
22 #include <ifaddrs.h>