summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDave Beckett <dave@dajobe.org>2021-10-10 00:25:13 -0700
committerDave Beckett <dave@dajobe.org>2021-10-10 00:25:13 -0700
commitd1601e5217d879d5afb1598a8c564df8e87ceab8 (patch)
treeecbac5594f6bf3029fcfd787256a348a2e4debaf
parent2a932cbb9376cb2a5270bea5fcbbf94167ef6394 (diff)
downloadraptor-d1601e5217d879d5afb1598a8c564df8e87ceab8.tar.gz
Fix time header check with HAVE_ prefix
-rw-r--r--src/parsedate.y2
-rw-r--r--src/raptor_internal.h4
2 files changed, 3 insertions, 3 deletions
diff --git a/src/parsedate.y b/src/parsedate.y
index 437cdf50..b0b5197e 100644
--- a/src/parsedate.y
+++ b/src/parsedate.y
@@ -34,7 +34,7 @@
#ifdef HAVE_SYS_TIME_H
#include <sys/time.h>
#endif
-#ifdef TIME_H
+#ifdef HAVE_TIME_H
#include <time.h>
#endif
diff --git a/src/raptor_internal.h b/src/raptor_internal.h
index 2ea00734..ed5b068d 100644
--- a/src/raptor_internal.h
+++ b/src/raptor_internal.h
@@ -1226,10 +1226,10 @@ struct raptor_uri_detail_s
/* for time_t */
-#ifdef SYS_TIME_H
+#ifdef HAVE_SYS_TIME_H
#include <sys/time.h>
#endif
-#ifdef TIME_H
+#ifdef HAVE_TIME_H
#include <time.h>
#endif