- Fix pthread_setname detection to fail on warnings.

This commit is contained in:
W.C.A. Wijngaards
2026-04-17 17:13:14 +02:00
parent 82359c8fb1
commit 52fc5ee374
3 changed files with 7 additions and 0 deletions
Vendored
+3
View File
@@ -19092,6 +19092,8 @@ then :
fi
BAKCFLAGS="$CFLAGS"
CFLAGS="$CFLAGS -Werror"
# MacOS only has 1 argument, the name.
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether pthread_setname_np has only 1 argument" >&5
printf %s "checking whether pthread_setname_np has only 1 argument... " >&6; }
@@ -19240,6 +19242,7 @@ printf "%s\n" "no" >&6; }
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
CFLAGS="$BAKCFLAGS"
fi
# check solaris thread library
+3
View File
@@ -736,6 +736,8 @@ if test x_$ub_have_pthreads != x_no; then
# Some OSes have the extra non-portable functions in a specific
# header file.
AC_CHECK_HEADERS([pthread_np.h],,, [AC_INCLUDES_DEFAULT])
BAKCFLAGS="$CFLAGS"
CFLAGS="$CFLAGS -Werror"
# MacOS only has 1 argument, the name.
AC_MSG_CHECKING([whether pthread_setname_np has only 1 argument])
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([AC_INCLUDES_DEFAULT
@@ -796,6 +798,7 @@ if test x_$ub_have_pthreads != x_no; then
],[
AC_MSG_RESULT(no)
])
CFLAGS="$BAKCFLAGS"
fi
# check solaris thread library
+1
View File
@@ -17,6 +17,7 @@
- Fix subnet store of servfail to not leak memory.
- Update generated man pages.
- Update generated configure, with autoconf.
- Fix pthread_setname detection to fail on warnings.
17 April 2026: Yorgos
- Merge #1400: Support pthread_setname_np. Adds support for