summaryrefslogtreecommitdiffstats
path: root/config
diff options
context:
space:
mode:
authorAllen Byrne <byrn@hdfgroup.org>2012-06-15 13:26:33 (GMT)
committerAllen Byrne <byrn@hdfgroup.org>2012-06-15 13:26:33 (GMT)
commitdd408f47f64e3f33e50b804b7a230c0287f01336 (patch)
tree29bf4e3f29e5c70c31c1f86de00acf8d1a506e9c /config
parentb0e5e9208fb7e7e73db702411f0bff65d43e8eeb (diff)
downloadhdf5-dd408f47f64e3f33e50b804b7a230c0287f01336.zip
hdf5-dd408f47f64e3f33e50b804b7a230c0287f01336.tar.gz
hdf5-dd408f47f64e3f33e50b804b7a230c0287f01336.tar.bz2
[svn-r22464] Correct name used for POSIX flag
Diffstat (limited to 'config')
-rw-r--r--config/cmake/ConfigureChecks.cmake8
1 files changed, 7 insertions, 1 deletions
diff --git a/config/cmake/ConfigureChecks.cmake b/config/cmake/ConfigureChecks.cmake
index 244314c..048c700 100644
--- a/config/cmake/ConfigureChecks.cmake
+++ b/config/cmake/ConfigureChecks.cmake
@@ -411,7 +411,13 @@ SET (LINUX_LFS 0)
SET (HDF5_EXTRA_FLAGS)
IF (NOT WINDOWS)
# Linux Specific flags
- SET (HDF5_EXTRA_FLAGS -D_POSIX_SOURCE=199506L -D_BSD_SOURCE)
+ # This was originally defined as _POSIX_SOURCE which was updated to
+ # _POSIX_C_SOURCE=199506L to expose a greater amount of POSIX
+ # functionality so clock_gettime and CLOCK_MONOTONIC are defined
+ # correctly.
+ # 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 (HDF5_EXTRA_FLAGS -D_POSIX_C_SOURCE=199506L -D_BSD_SOURCE)
OPTION (HDF5_ENABLE_LARGE_FILE "Enable support for large (64-bit) files on Linux." ON)
IF (HDF5_ENABLE_LARGE_FILE)
SET (msg "Performing TEST_LFS_WORKS")