ruby-changes:62792
From: Jeremy <ko1@a...>
Date: Tue, 1 Sep 2020 23:16:53 +0900 (JST)
Subject: [ruby-changes:62792] be9dbe1c3e (master): Fix pthread_setname_np arguments on NetBSD
https://git.ruby-lang.org/ruby.git/commit/?id=be9dbe1c3e From be9dbe1c3eb4bb4cab0bdc42a91ef425bb1eaddd Mon Sep 17 00:00:00 2001 From: Jeremy Evans <code@j...> Date: Mon, 31 Aug 2020 14:19:23 -0700 Subject: 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] diff --git a/configure.ac b/configure.ac index 296b069..e4a7542 100644 --- a/configure.ac +++ b/configure.ac @@ -2542,11 +2542,11 @@ AS_IF([test x"$enable_pthread" = xyes], [ https://github.com/ruby/ruby/blob/trunk/configure.ac#L2542 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([ -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/