summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/parsedate.y6
-rw-r--r--src/raptor_internal.h14
2 files changed, 9 insertions, 11 deletions
diff --git a/src/parsedate.y b/src/parsedate.y
index a0ff6e82..437cdf50 100644
--- a/src/parsedate.y
+++ b/src/parsedate.y
@@ -29,11 +29,13 @@
#include <stdio.h>
#include <sys/types.h>
-#include <time.h>
#include <ctype.h>
#ifdef HAVE_SYS_TIME_H
-# include <sys/time.h>
+#include <sys/time.h>
+#endif
+#ifdef TIME_H
+#include <time.h>
#endif
#ifdef HAVE_STDLIB_H
diff --git a/src/raptor_internal.h b/src/raptor_internal.h
index 3767c66a..2ea00734 100644
--- a/src/raptor_internal.h
+++ b/src/raptor_internal.h
@@ -1226,15 +1226,11 @@ struct raptor_uri_detail_s
/* for time_t */
-#ifdef TIME_WITH_SYS_TIME
-# include <sys/time.h>
-# include <time.h>
-#else
-# ifdef HAVE_SYS_TIME_H
-# include <sys/time.h>
-# else
-# include <time.h>
-# endif
+#ifdef SYS_TIME_H
+#include <sys/time.h>
+#endif
+#ifdef TIME_H
+#include <time.h>
#endif
/* parsedate.c */