Skip to content

Commit

Permalink
Make sure to include sys/time.h
Browse files Browse the repository at this point in the history
  • Loading branch information
derickr committed Apr 28, 2017
1 parent 44fbe1c commit 4a58a7a
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
1 change: 0 additions & 1 deletion parse_zoneinfo.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
* THE SOFTWARE.
*/

#define _GNU_SOURCE
#include "timelib.h"

#include <sys/stat.h>
Expand Down
1 change: 1 addition & 0 deletions timelib.m4
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand Down
4 changes: 4 additions & 0 deletions timelib_structs.h
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,10 @@
#include <sys/types.h>
#endif

#ifdef HAVE_SYS_TIME_H
#include <sys/time.h>
#endif

#if defined(HAVE_INTTYPES_H)
#include <inttypes.h>
#elif defined(HAVE_STDINT_H)
Expand Down

0 comments on commit 4a58a7a

Please sign in to comment.