summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDana Robinson <43805+derobins@users.noreply.github.com>2021-06-24 19:21:46 (GMT)
committerGitHub <noreply@github.com>2021-06-24 19:21:46 (GMT)
commit5c3f4b3cb26f92fa0cc60f750816e122e8a68f8d (patch)
tree1c4c63c9edb53edc704c6d90637497f7e875b757 /src
parent782e8826b73309aeed5916751d6156570740a778 (diff)
downloadhdf5-5c3f4b3cb26f92fa0cc60f750816e122e8a68f8d.zip
hdf5-5c3f4b3cb26f92fa0cc60f750816e122e8a68f8d.tar.gz
hdf5-5c3f4b3cb26f92fa0cc60f750816e122e8a68f8d.tar.bz2
Removes ancient Autotools cruft (#790)
Diffstat (limited to 'src')
-rw-r--r--src/H5private.h21
1 files changed, 2 insertions, 19 deletions
diff --git a/src/H5private.h b/src/H5private.h
index ce6681a..327198d 100644
--- a/src/H5private.h
+++ b/src/H5private.h
@@ -38,11 +38,13 @@
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
+#include <time.h>
/* POSIX headers */
#ifdef H5_HAVE_UNISTD_H
#include <pwd.h>
#include <unistd.h>
+#include <sys/time.h>
#include <sys/types.h>
#include <sys/wait.h>
#endif
@@ -62,25 +64,6 @@
#endif
/*
- * If a program may include both `time.h' and `sys/time.h' then
- * TIME_WITH_SYS_TIME is defined (see AC_HEADER_TIME in configure.ac).
- * On some older systems, `sys/time.h' includes `time.h' but `time.h' is not
- * protected against multiple inclusion, so programs should not explicitly
- * include both files. This macro is useful in programs that use, for example,
- * `struct timeval' or `struct timezone' as well as `struct tm'. It is best
- * used in conjunction with `HAVE_SYS_TIME_H', whose existence is checked
- * by `AC_CHECK_HEADERS(sys/time.h)' in configure.ac.
- */
-#if defined(H5_TIME_WITH_SYS_TIME)
-#include <sys/time.h>
-#include <time.h>
-#elif defined(H5_HAVE_SYS_TIME_H)
-#include <sys/time.h>
-#else
-#include <time.h>
-#endif
-
-/*
* Longjumps are used to detect alignment constrants
*/
#ifdef H5_HAVE_SETJMP_H