summaryrefslogtreecommitdiffstats
path: root/meta/recipes-core/libxml/libxml2
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2015-04-06 17:36:51 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-04-08 10:53:30 +0100
commit9a2768b013cb28de604023752c2f62bd91226184 (patch)
treeaaed3cbfd9a83b6f006f14cf52a05982dc7f8dd0 /meta/recipes-core/libxml/libxml2
parentab16cd13deeb4b6aca082261533aa87ca69fdffd (diff)
downloadpoky-9a2768b013cb28de604023752c2f62bd91226184.tar.gz
libxml2: Contain glibc-extentions under __GLIBC__
Makes it more portable Change-Id: I7bbc4cc0ebc26d54248b8433dab94db207615445 (From OE-Core rev: 0dfe553d58a76cc0d2592cf5746a1f24a3cd6ee4) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-core/libxml/libxml2')
-rw-r--r--meta/recipes-core/libxml/libxml2/0001-threads-Define-pthread-definitions-for-glibc-complia.patch32
1 files changed, 32 insertions, 0 deletions
diff --git a/meta/recipes-core/libxml/libxml2/0001-threads-Define-pthread-definitions-for-glibc-complia.patch b/meta/recipes-core/libxml/libxml2/0001-threads-Define-pthread-definitions-for-glibc-complia.patch
new file mode 100644
index 0000000000..c653a81af3
--- /dev/null
+++ b/meta/recipes-core/libxml/libxml2/0001-threads-Define-pthread-definitions-for-glibc-complia.patch
@@ -0,0 +1,32 @@
1From 6750cc564a17c812555cca587660240ccffaaed3 Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Sat, 4 Apr 2015 08:50:40 -0700
4Subject: [PATCH] threads: Define pthread* definitions for glibc compliant libs
5
6This code is assuming glibc but not explicitly saying it
7so lets make it so. Fixes following on musl
8
9threads.c:80:27: error: macro "pthread_equal" requires 2 arguments, but
10only 1 given
11| extern int pthread_equal ()
12
13Signed-off-by: Khem Raj <raj.khem@gmail.com>
14
15Upstream-Status: Pending
16---
17 threads.c | 2 +-
18 1 file changed, 1 insertion(+), 1 deletion(-)
19
20Index: libxml2-2.9.2/threads.c
21===================================================================
22--- libxml2-2.9.2.orig/threads.c
23+++ libxml2-2.9.2/threads.c
24@@ -47,7 +47,7 @@
25 #ifdef HAVE_PTHREAD_H
26
27 static int libxml_is_threaded = -1;
28-#ifdef __GNUC__
29+#if defined(__GNUC__) && defined(__GLIBC__)
30 #ifdef linux
31 #if (__GNUC__ == 3 && __GNUC_MINOR__ >= 3) || (__GNUC__ > 3)
32 extern int pthread_once (pthread_once_t *__once_control,