Permalink
Browse files

minor, check for tzfile.h and include it in tzraw.c

Signed-off-by: Sebastian Freundt <freundt@ga-group.nl>

Conflicts:

	configure.ac
	src/tzraw.c
  • Loading branch information...
1 parent e9bcb0b commit b5387eac2d4d4f818b3ac13c69e5e179cf63872c @hroptatyr committed Apr 11, 2012
Showing with 11 additions and 0 deletions.
  1. +3 −0 configure.ac
  2. +8 −0 src/tzraw.c
View
@@ -47,6 +47,9 @@ AC_CHECK_HEADERS([endian.h sys/endian.h byteorder.h byteswap.h])
## check for mkostemp
SXE_FUNC_MKOSTEMP
+## check for tzfile.h
+AC_CHECK_HEADERS([tzfile.h])
+
## check for working c1x features
SXE_CHECK_ANON_STRUCTS([
AC_DEFINE([__C1X], [1], [Whether c1x work])
View
@@ -35,6 +35,9 @@
*
***/
+#if defined HAVE_CONFIG_H
+# include "config.h"
+#endif /* HAVE_CONFIG_H */
#include <stddef.h>
#include <stdint.h>
#include <stdbool.h>
@@ -47,6 +50,11 @@
#include <time.h>
#include <limits.h>
+#if defined HAVE_TZFILE_H
+# include <tzfile.h>
+#endif /* HAVE_TZFILE_H */
+
+/* me own header, innit */
#include "tzraw.h"
#if !defined LIKELY

0 comments on commit b5387ea

Please sign in to comment.