mirror of
https://github.com/moparisthebest/curl
synced 2024-12-21 23:58:49 -05:00
the autobuilds failed all over on AIX, attempt to fix the strerror_r() problem
by setting _THREAD_SAFE (and -qthreaded) before strerror_r() is checked for.
This commit is contained in:
parent
ee400f9552
commit
62ff567c47
15
configure.ac
15
configure.ac
@ -1038,13 +1038,6 @@ dnl http://publibn.boulder.ibm.com/doc_link/en_US/a_doc_lib/aixprggd/ \
|
|||||||
dnl genprogc/thread_quick_ref.htm
|
dnl genprogc/thread_quick_ref.htm
|
||||||
|
|
||||||
if test "x$RECENTAIX" = "xyes"; then
|
if test "x$RECENTAIX" = "xyes"; then
|
||||||
dnl is there a localtime_r()
|
|
||||||
CURL_CHECK_LOCALTIME_R()
|
|
||||||
|
|
||||||
dnl is there a strerror_r()
|
|
||||||
CURL_CHECK_STRERROR_R()
|
|
||||||
|
|
||||||
AC_CHECK_FUNCS( gmtime_r )
|
|
||||||
|
|
||||||
AC_DEFINE(_THREAD_SAFE, 1, [define this if you need it to compile thread-safe code])
|
AC_DEFINE(_THREAD_SAFE, 1, [define this if you need it to compile thread-safe code])
|
||||||
|
|
||||||
@ -1062,6 +1055,14 @@ if test "x$RECENTAIX" = "xyes"; then
|
|||||||
CFLAGS="$CFLAGS -qthreaded"
|
CFLAGS="$CFLAGS -qthreaded"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
dnl is there a localtime_r()
|
||||||
|
CURL_CHECK_LOCALTIME_R()
|
||||||
|
|
||||||
|
dnl is there a strerror_r()
|
||||||
|
CURL_CHECK_STRERROR_R()
|
||||||
|
|
||||||
|
AC_CHECK_FUNCS( gmtime_r )
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user