Fix pthread_setname_np arguments on NetBSD

The previous attempt to fix this in
b87df1bf24 reversed the argument
order instead of just fixing the quote escaping.

From Takahiro Kambe.

Fixes [Bug #15178]
This commit is contained in:
Jeremy Evans 2020-08-31 14:19:23 -07:00
Родитель 6b43200948
Коммит be9dbe1c3e
1 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -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],
[rb_cv_func_pthread_setname_np_arguments=
# Linux,AIX, (pthread_self(), name)
# NetBSD (pthread_self(), name, \"%s\")
# NetBSD (pthread_self(), \"%s\", name)
# Darwin (name)
for mac in \
"(pthread_self(), name)" \
"(pthread_self(), name, \"%s\")" \
"(pthread_self(), \"%s\", name)" \
"(name)" \
; do
AC_TRY_COMPILE([