Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame^] | 1 | From 6750cc564a17c812555cca587660240ccffaaed3 Mon Sep 17 00:00:00 2001 |
| 2 | From: Khem Raj <raj.khem@gmail.com> |
| 3 | Date: Sat, 4 Apr 2015 08:50:40 -0700 |
| 4 | Subject: [PATCH] threads: Define pthread* definitions for glibc compliant libs |
| 5 | |
| 6 | This code is assuming glibc but not explicitly saying it |
| 7 | so lets make it so. Fixes following on musl |
| 8 | |
| 9 | threads.c:80:27: error: macro "pthread_equal" requires 2 arguments, but |
| 10 | only 1 given |
| 11 | | extern int pthread_equal () |
| 12 | |
| 13 | Signed-off-by: Khem Raj <raj.khem@gmail.com> |
| 14 | |
| 15 | Upstream-Status: Pending |
| 16 | --- |
| 17 | threads.c | 2 +- |
| 18 | 1 file changed, 1 insertion(+), 1 deletion(-) |
| 19 | |
| 20 | Index: 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, |