1
0

patch-threads_c 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. --- libxml2-2.9.1.orig/threads.c 2013-04-05 17:08:04.000000000 +0200
  2. +++ libxml2-2.9.1/threads.c 2013-09-04 15:17:52.000000000 +0200
  3. @@ -47,49 +47,7 @@
  4. #ifdef HAVE_PTHREAD_H
  5. static int libxml_is_threaded = -1;
  6. -#ifdef __GNUC__
  7. -#ifdef linux
  8. -#if (__GNUC__ == 3 && __GNUC_MINOR__ >= 3) || (__GNUC__ > 3)
  9. -extern int pthread_once (pthread_once_t *__once_control,
  10. - void (*__init_routine) (void))
  11. - __attribute((weak));
  12. -extern void *pthread_getspecific (pthread_key_t __key)
  13. - __attribute((weak));
  14. -extern int pthread_setspecific (pthread_key_t __key,
  15. - __const void *__pointer)
  16. - __attribute((weak));
  17. -extern int pthread_key_create (pthread_key_t *__key,
  18. - void (*__destr_function) (void *))
  19. - __attribute((weak));
  20. -extern int pthread_key_delete (pthread_key_t __key)
  21. - __attribute((weak));
  22. -extern int pthread_mutex_init ()
  23. - __attribute((weak));
  24. -extern int pthread_mutex_destroy ()
  25. - __attribute((weak));
  26. -extern int pthread_mutex_lock ()
  27. - __attribute((weak));
  28. -extern int pthread_mutex_unlock ()
  29. - __attribute((weak));
  30. -extern int pthread_cond_init ()
  31. - __attribute((weak));
  32. -extern int pthread_cond_destroy ()
  33. - __attribute((weak));
  34. -extern int pthread_cond_wait ()
  35. - __attribute((weak));
  36. -extern int pthread_equal ()
  37. - __attribute((weak));
  38. -extern pthread_t pthread_self ()
  39. - __attribute((weak));
  40. -extern int pthread_key_create ()
  41. - __attribute((weak));
  42. -extern int pthread_key_delete ()
  43. - __attribute((weak));
  44. -extern int pthread_cond_signal ()
  45. - __attribute((weak));
  46. -#endif
  47. -#endif /* linux */
  48. -#endif /* __GNUC__ */
  49. +
  50. #endif /* HAVE_PTHREAD_H */
  51. /*