diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/H5private.h | 21 |
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 |