Add detection for function pthread_threadid_np for macOS

Fix #443
This commit is contained in:
Brad Smith
2026-03-22 01:26:44 -04:00
parent 8dd19e2de8
commit c74b6e71ce

View File

@@ -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"