|
Line
Link Here
|
| 0 |
-- configure.ac |
0 |
++ configure.ac |
|
Lines 88-93
esac
Link Here
|
| 88 |
# link in libpthread_nonshared.a if it is available. |
88 |
# link in libpthread_nonshared.a if it is available. |
| 89 |
# |
89 |
# |
| 90 |
AC_CHECK_LIB([pthread_nonshared], [pthread_atfork]) |
90 |
AC_CHECK_LIB([pthread_nonshared], [pthread_atfork]) |
|
|
91 |
# the lib is gone in glibc 2.28, things are now in c_nonshared |
| 92 |
AC_CHECK_LIB([c_nonshared], [pthread_atfork]) |
| 91 |
|
93 |
|
| 92 |
# Checks for header files. |
94 |
# Checks for header files. |
| 93 |
AC_CHECK_HEADERS([process.h]) |
95 |
AC_CHECK_HEADERS([process.h]) |
| 94 |
-- src/pthr.h |
96 |
++ src/pthr.h |
|
Lines 42-48
static inline int pthreads_available(void)
Link Here
|
| 42 |
* symbol because that causes it to be undefined even if you link |
42 |
* symbol because that causes it to be undefined even if you link |
| 43 |
* libpthread_nonshared.a in explicitly. |
43 |
* libpthread_nonshared.a in explicitly. |
| 44 |
*/ |
44 |
*/ |
| 45 |
#ifndef HAVE_LIBPTHREAD_NONSHARED |
45 |
#if !defined(HAVE_LIBPTHREAD_NONSHARED) && !defined(HAVE_LIBC_NONSHARED) |
| 46 |
#pragma weak pthread_atfork |
46 |
#pragma weak pthread_atfork |
| 47 |
#endif |
47 |
#endif |
| 48 |
|
48 |
|