aboutsummaryrefslogtreecommitdiffstats
path: root/main/libxml2/libxml2-pthread.patch
diff options
context:
space:
mode:
authorTimo Teräs <timo.teras@iki.fi>2013-09-27 14:42:57 +0000
committerTimo Teräs <timo.teras@iki.fi>2013-09-27 14:42:57 +0000
commit1372cc184451ae1f3837017ca97d9fa3cc45b55b (patch)
treec6b87c22d13fa5bd83059884a64d6a42027e68e6 /main/libxml2/libxml2-pthread.patch
parentc5d8cfdc4a5a1b5303475627fd265422dc1887df (diff)
downloadaports-1372cc184451ae1f3837017ca97d9fa3cc45b55b.tar.bz2
aports-1372cc184451ae1f3837017ca97d9fa3cc45b55b.tar.xz
main/libxml2: fix pthreads patch for non-musl
the weak hack is needed if -lpthreads is separate library. so just differentiate with musl and non-musl with __GLIBC__ as an ugly hack.
Diffstat (limited to 'main/libxml2/libxml2-pthread.patch')
-rw-r--r--main/libxml2/libxml2-pthread.patch56
1 files changed, 7 insertions, 49 deletions
diff --git a/main/libxml2/libxml2-pthread.patch b/main/libxml2/libxml2-pthread.patch
index d6e6f466ac..77d7b3849b 100644
--- a/main/libxml2/libxml2-pthread.patch
+++ b/main/libxml2/libxml2-pthread.patch
@@ -1,53 +1,11 @@
---- libxml2-2.9.1.patched/threads.c 2013-07-24 03:30:55.160000003 +0000
-+++ libxml2-2.9.1/threads.c 2013-07-24 03:33:50.323000003 +0000
-@@ -47,49 +47,7 @@
+--- libxml2-2.9.1/threads.c.orig
++++ libxml2-2.9.1/threads.c
+@@ -47,7 +47,7 @@
#ifdef HAVE_PTHREAD_H
static int libxml_is_threaded = -1;
-#ifdef __GNUC__
--#ifdef linux
--#if (__GNUC__ == 3 && __GNUC_MINOR__ >= 3) || (__GNUC__ > 3)
--extern int pthread_once (pthread_once_t *__once_control,
-- void (*__init_routine) (void))
-- __attribute((weak));
--extern void *pthread_getspecific (pthread_key_t __key)
-- __attribute((weak));
--extern int pthread_setspecific (pthread_key_t __key,
-- __const void *__pointer)
-- __attribute((weak));
--extern int pthread_key_create (pthread_key_t *__key,
-- void (*__destr_function) (void *))
-- __attribute((weak));
--extern int pthread_key_delete (pthread_key_t __key)
-- __attribute((weak));
--extern int pthread_mutex_init ()
-- __attribute((weak));
--extern int pthread_mutex_destroy ()
-- __attribute((weak));
--extern int pthread_mutex_lock ()
-- __attribute((weak));
--extern int pthread_mutex_unlock ()
-- __attribute((weak));
--extern int pthread_cond_init ()
-- __attribute((weak));
--extern int pthread_cond_destroy ()
-- __attribute((weak));
--extern int pthread_cond_wait ()
-- __attribute((weak));
--extern int pthread_equal ()
-- __attribute((weak));
--extern pthread_t pthread_self ()
-- __attribute((weak));
--extern int pthread_key_create ()
-- __attribute((weak));
--extern int pthread_key_delete ()
-- __attribute((weak));
--extern int pthread_cond_signal ()
-- __attribute((weak));
--#endif
--#endif /* linux */
--#endif /* __GNUC__ */
-+
- #endif /* HAVE_PTHREAD_H */
-
- /*
++#if defined(__GNUC__) && defined(__GLIBC__)
+ #ifdef linux
+ #if (__GNUC__ == 3 && __GNUC_MINOR__ >= 3) || (__GNUC__ > 3)
+ extern int pthread_once (pthread_once_t *__once_control,