From c74b6e71ce93c24d412c64b6b666bf5aa9b1de8d Mon Sep 17 00:00:00 2001 From: Brad Smith Date: Sun, 22 Mar 2026 01:26:44 -0400 Subject: [PATCH] Add detection for function pthread_threadid_np for macOS Fix #443 --- configure.ac | 3 +++ 1 file changed, 3 insertions(+) diff --git a/configure.ac b/configure.ac index 9b5e7ee..b209c17 100644 --- a/configure.ac +++ b/configure.ac @@ -242,6 +242,9 @@ fi AC_SUBST(LIBS_PRIVATE) AM_CONDITIONAL([HAVE_PTHREAD_SPIN_LOCKS], [test x$ac_cv_lib_pthread_pthread_spin_lock = xyes]) +# check for pthread_threadid_np +AC_CHECK_FUNCS(pthread_threadid_np) + AC_CACHE_CHECK([whether libcunit is available], [ac_cv_have_cunit], [ac_save_CFLAGS="$CFLAGS"