diff options
author | Dana Robinson <derobins@hdfgroup.org> | 2015-09-06 01:51:08 (GMT) |
---|---|---|
committer | Dana Robinson <derobins@hdfgroup.org> | 2015-09-06 01:51:08 (GMT) |
commit | c6ed371d19fead3b134cbcf5c89fff0f25368a21 (patch) | |
tree | 3ff2d1ff9f30554fed404c6f96418314dcfdd70d /configure.ac | |
parent | b106502c57ba63a89a05f08444610d01ffefe22f (diff) | |
download | hdf5-c6ed371d19fead3b134cbcf5c89fff0f25368a21.zip hdf5-c6ed371d19fead3b134cbcf5c89fff0f25368a21.tar.gz hdf5-c6ed371d19fead3b134cbcf5c89fff0f25368a21.tar.bz2 |
[svn-r27684] Removed _BSD_SOURCE and _DEFAULT_SOURCE from the autotools
C flags. They are no longer needed by the library. Fixes HDFFV-9079.
Tested on: h5committest
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/configure.ac b/configure.ac index b12b5b2..fd2c98b 100644 --- a/configure.ac +++ b/configure.ac @@ -1065,21 +1065,6 @@ case "$host_cpu-$host_vendor-$host_os" in ## Need to add this so that O_DIRECT is visible for the direct ## VFD on Linux systems. H5_CPPFLAGS="-D_GNU_SOURCE $H5_CPPFLAGS" - - ## Also add BSD support on Linux systems, so <features.h> defines - ## __USE_BSD, which is required to get the prototype for strdup - ## defined correctly in <string.h> and snprintf & vsnprintf defined - ## correctly in <stdio.h> - ## Linking to the bsd-compat library is required as per the gcc manual: - ## http://www.gnu.org/s/libc/manual/html_node/Feature-Test-Macros.html - ## however, we do not do this since it breaks the big test on some - ## older platforms. - H5_CPPFLAGS="-D_BSD_SOURCE $H5_CPPFLAGS" - - ## _BSD_SOURCE is deprecated as of glibc 2.20, in favor of _DEFAULT_SOURCE. - ## To avoid warnings, we define _DEFAULT_SOURCE in addition to _BSD_SOURCE, - ## which should work for all versions of glibc. - H5_CPPFLAGS="-D_DEFAULT_SOURCE $H5_CPPFLAGS" ;; esac |