Fix pthread_setname_np arguments on NetBSD
The previous attempt to fix this in b87df1bf243074edb2e6cc8a24bc00df81cebf3c reversed the argument order instead of just fixing the quote escaping. From Takahiro Kambe. Fixes [Bug #15178]
This commit is contained in:
parent
6b43200948
commit
be9dbe1c3e
Notes:
git
2020-09-01 23:16:55 +09:00
@ -2542,11 +2542,11 @@ AS_IF([test x"$enable_pthread" = xyes], [
|
|||||||
AC_CACHE_CHECK([arguments of pthread_setname_np], [rb_cv_func_pthread_setname_np_arguments],
|
AC_CACHE_CHECK([arguments of pthread_setname_np], [rb_cv_func_pthread_setname_np_arguments],
|
||||||
[rb_cv_func_pthread_setname_np_arguments=
|
[rb_cv_func_pthread_setname_np_arguments=
|
||||||
# Linux,AIX, (pthread_self(), name)
|
# Linux,AIX, (pthread_self(), name)
|
||||||
# NetBSD (pthread_self(), name, \"%s\")
|
# NetBSD (pthread_self(), \"%s\", name)
|
||||||
# Darwin (name)
|
# Darwin (name)
|
||||||
for mac in \
|
for mac in \
|
||||||
"(pthread_self(), name)" \
|
"(pthread_self(), name)" \
|
||||||
"(pthread_self(), name, \"%s\")" \
|
"(pthread_self(), \"%s\", name)" \
|
||||||
"(name)" \
|
"(name)" \
|
||||||
; do
|
; do
|
||||||
AC_TRY_COMPILE([
|
AC_TRY_COMPILE([
|
||||||
|
Loading…
x
Reference in New Issue
Block a user