Skip to content

Commit

Permalink
Disable checking for C11 threads for now
Browse files Browse the repository at this point in the history
Signed-off-by: Quincey Koziol <[email protected]>
  • Loading branch information
qkoziol committed Apr 14, 2024
1 parent 90d27aa commit 0b5c871
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -751,7 +751,7 @@ if (Threads_FOUND)
set (CMAKE_REQUIRED_LIBRARIES ${CMAKE_THREAD_LIBS_INIT})

# Determine which threading package to use
CHECK_INCLUDE_FILE("threads.h" HAVE_THREADS_H)
#CHECK_INCLUDE_FILE("threads.h" HAVE_THREADS_H)
if (WIN32)
# When Win32 is available, we use those threads
set (H5_HAVE_WIN_THREADS 1)
Expand Down
2 changes: 1 addition & 1 deletion HDF5Examples/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ if (Threads_FOUND)
set (CMAKE_REQUIRED_LIBRARIES ${CMAKE_THREAD_LIBS_INIT})

# Determine which threading package to use
CHECK_INCLUDE_FILE("threads.h" HAVE_THREADS_H)
#CHECK_INCLUDE_FILE("threads.h" HAVE_THREADS_H)
if (WIN32)
# When Win32 is available, we use those threads
set (H5_HAVE_WIN_THREADS 1)
Expand Down
1 change: 0 additions & 1 deletion config/cmake/ConfigureChecks.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -436,7 +436,6 @@ if (MINGW OR NOT WINDOWS)
HAVE_ATTRIBUTE
HAVE_BUILTIN_EXPECT
PTHREAD_BARRIER
SYSTEM_SCOPE_THREADS
HAVE_SOCKLEN_T
)
HDF_FUNCTION_TEST (${other_test})
Expand Down
2 changes: 1 addition & 1 deletion configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -2157,7 +2157,7 @@ if test "X$THREADS" = "Xyes"; then
## Check for C11 threads, we want to use C11 threads unless the builder
## explicitly specifies --with-pthreads=(yes | path(s))
AC_SUBST([HAVE_C11_THREADS]) HAVE_C11_THREADS=no
AC_CHECK_HEADERS([threads.h],[HAVE_THREADS_H="yes"],[HAVE_THREADS_H="no"])
#AC_CHECK_HEADERS([threads.h],[HAVE_THREADS_H="yes"],[HAVE_THREADS_H="no"])
if test "x$HAVE_THREADS_H" = "xyes"; then
# Default or no --> C11 threads
if test "$withval" = "default" -o "$withval" = "no" ; then
Expand Down

0 comments on commit 0b5c871

Please sign in to comment.