blob: c653a81af3d1d0fd4eb78631c5d6c395cfa3ab90 [file] [log] [blame]
Patrick Williamsc124f4f2015-09-15 14:41:29 -05001From 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,