attempt fix for pthread_set_name_np() not providing a success status

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@38259 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Richard Frith-MacDonald 2014-12-24 14:00:36 +00:00
parent 01e9c92d9e
commit 6d14b42b1c
2 changed files with 5 additions and 5 deletions

2
configure vendored
View file

@ -13815,7 +13815,7 @@ done
if test $ac_cv_func_pthread_set_name_np == yes; then
cat >>confdefs.h <<\_ACEOF
#define PTHREAD_SETNAME(a,b) pthread_set_name_np(b)
#define PTHREAD_SETNAME(a,b) {pthread_set_name_np(b)
_ACEOF
else

View file

@ -1751,8 +1751,8 @@ CFLAGS=$saved_CFLAGS
AC_CHECK_FUNCS(pthread_set_name_np)
if test $ac_cv_func_pthread_set_name_np == yes; then
AC_DEFINE(PTHREAD_SETNAME(a,b), pthread_set_name_np(b),
[Description: Define set name function for pthread])
AC_DEFINE(PTHREAD_SETNAME(a,b), {pthread_set_name_np(b),0}
[Description: Define set_name function for pthread returning void])
else
AC_CACHE_CHECK(
[for pthread_setname_np() variant],
@ -1769,11 +1769,11 @@ else
case $gs_cv_pthread_setname_np in
glibc)
AC_DEFINE(PTHREAD_SETNAME(a,b), pthread_setname_np(a,b),
[Description: Define set name function for pthread])
[Description: Define setname function for pthread with two args])
;;
netbsd)
AC_DEFINE(PTHREAD_SETNAME(a,b), pthread_setname_np(a,"%s",b),
[Description: Define set name function for pthread])
[Description: Define setname function for pthread with three args])
;;
esac
fi