Include <threads.h> if it exists

This commit is contained in:
Frank Denis
2025-07-30 23:04:45 +02:00
parent 4f21b2f4af
commit 59b8ba3573
2 changed files with 4 additions and 1 deletions
+1 -1
View File
@@ -659,7 +659,7 @@ AC_SUBST(CFLAGS_RDRAND)
AC_CHECK_HEADERS([sys/mman.h sys/param.h sys/random.h intrin.h sys/auxv.h])
AC_CHECK_HEADERS([CommonCrypto/CommonRandom.h])
AC_CHECK_HEADERS([cet.h])
AC_CHECK_HEADERS([cet.h threads.h])
AC_MSG_CHECKING([if _xgetbv() is available])
AC_LINK_IFELSE(
@@ -9,6 +9,9 @@
#if !defined(_MSC_VER) && !defined(__BORLANDC__)
# include <unistd.h>
#endif
#if !defined(__STDC_NO_THREADS__) && defined(HAVE_THREADS_H)
# include <threads.h>
#endif
#include <sys/types.h>
#ifndef _WIN32