Skip to content

Commit

Permalink
Update CMake comment about _POSIX_C_SOURCE (HDFGroup#4124)
Browse files Browse the repository at this point in the history
Was missng the 2008 pread/write info
  • Loading branch information
derobins authored Mar 13, 2024
1 parent 56f1092 commit 8961016
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion config/cmake/ConfigureChecks.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,9 @@ if (CMAKE_SYSTEM_NAME MATCHES "Linux")
# functionality so clock_gettime and CLOCK_MONOTONIC are defined
# correctly. This was later updated to 200112L so that
# posix_memalign() is visible for the direct VFD code on Linux
# systems.
# systems. Even later, this was changed to 200809L to support
# pread/pwrite in VFDs.
#
# POSIX feature information can be found in the gcc manual at:
# http://www.gnu.org/s/libc/manual/html_node/Feature-Test-Macros.html
set (HDF_EXTRA_C_FLAGS -D_POSIX_C_SOURCE=200809L)
Expand Down

0 comments on commit 8961016

Please sign in to comment.