diff --git a/parse_zoneinfo.c b/parse_zoneinfo.c index f8bb9ee..f7cc40b 100644 --- a/parse_zoneinfo.c +++ b/parse_zoneinfo.c @@ -23,7 +23,6 @@ * THE SOFTWARE. */ -#define _GNU_SOURCE #include "timelib.h" #include diff --git a/timelib.m4 b/timelib.m4 index 99bf9fa..050556c 100644 --- a/timelib.m4 +++ b/timelib.m4 @@ -69,6 +69,7 @@ TL_CHECK_INT_TYPE(uint32_t) dnl Check for headers needed by timelib AC_CHECK_HEADERS([ \ +sys/time.h \ sys/types.h \ inttypes.h \ stdint.h \ diff --git a/timelib_structs.h b/timelib_structs.h index 4256dd4..f07a104 100644 --- a/timelib_structs.h +++ b/timelib_structs.h @@ -35,6 +35,10 @@ #include #endif +#ifdef HAVE_SYS_TIME_H +#include +#endif + #if defined(HAVE_INTTYPES_H) #include #elif defined(HAVE_STDINT_H)