diff options
author | Dana Robinson <43805+derobins@users.noreply.github.com> | 2024-02-26 20:35:23 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-02-26 20:35:23 (GMT) |
commit | 5d6acc5c3f6271db79fbb8b481981d3cf0c5c27a (patch) | |
tree | 4a961b954560402932b25003656982da2e8f802c | |
parent | a665d0387437a809e3abe17ab4ff2a63d39ad351 (diff) | |
download | hdf5-5d6acc5c3f6271db79fbb8b481981d3cf0c5c27a.zip hdf5-5d6acc5c3f6271db79fbb8b481981d3cf0c5c27a.tar.gz hdf5-5d6acc5c3f6271db79fbb8b481981d3cf0c5c27a.tar.bz2 |
Remove check for gettimeofday + tz in CMake (#4045)
This is not used in the library
-rw-r--r-- | config/cmake/ConfigureChecks.cmake | 2 | ||||
-rw-r--r-- | config/cmake/HDFTests.c | 23 |
2 files changed, 0 insertions, 25 deletions
diff --git a/config/cmake/ConfigureChecks.cmake b/config/cmake/ConfigureChecks.cmake index df28f76..37f306e 100644 --- a/config/cmake/ConfigureChecks.cmake +++ b/config/cmake/ConfigureChecks.cmake @@ -78,7 +78,6 @@ if (WINDOWS) endif () if (NOT UNIX AND NOT CYGWIN) set (${HDF_PREFIX}_HAVE_GETCONSOLESCREENBUFFERINFO 1) - set (${HDF_PREFIX}_GETTIMEOFDAY_GIVES_TZ 1) set (${HDF_PREFIX}_HAVE_TIMEZONE 1) set (${HDF_PREFIX}_HAVE_GETTIMEOFDAY 1) set (${HDF_PREFIX}_HAVE_LIBWS2_32 1) @@ -396,7 +395,6 @@ if (MINGW OR NOT WINDOWS) CHECK_FUNCTION_EXISTS (gettimeofday ${HDF_PREFIX}_HAVE_GETTIMEOFDAY) foreach (time_test # HAVE_TIMEZONE - GETTIMEOFDAY_GIVES_TZ HAVE_TM_ZONE HAVE_STRUCT_TM_TM_ZONE ) diff --git a/config/cmake/HDFTests.c b/config/cmake/HDFTests.c index 3897390..095f113 100644 --- a/config/cmake/HDFTests.c +++ b/config/cmake/HDFTests.c @@ -175,29 +175,6 @@ int main(int argc, char **argv) } #endif -#ifdef GETTIMEOFDAY_GIVES_TZ -#include <time.h> -#ifdef HAVE_SYS_TIME_H -#include <sys/time.h> -#endif -int main(void) -{ - struct timeval tv; - struct timezone tz; - - tz.tz_minuteswest = 7777; /* Initialize to an unreasonable number */ - tz.tz_dsttime = 7; - - gettimeofday(&tv, &tz); - - /* Check whether the function returned any value at all */ - if (tz.tz_minuteswest == 7777 && tz.tz_dsttime == 7) - return 1; - else - return 0; -} -#endif - #ifdef HAVE_IOEO #include <windows.h> |