From 96b519726b7944eee3c23a54eee3d5c031ba1533 Mon Sep 17 00:00:00 2001 From: Darren Tucker Date: Thu, 3 Nov 2022 04:24:39 +1100 Subject: [PATCH] Include time.h when defining timegm. Fixes build on some platforms eg recent AIX. --- openbsd-compat/openbsd-compat.h | 1 + 1 file changed, 1 insertion(+) diff --git a/openbsd-compat/openbsd-compat.h b/openbsd-compat/openbsd-compat.h index 8f8150905..895ecf9ea 100644 --- a/openbsd-compat/openbsd-compat.h +++ b/openbsd-compat/openbsd-compat.h @@ -339,6 +339,7 @@ struct tm *localtime_r(const time_t *, struct tm *); #endif #ifndef HAVE_TIMEGM +#include time_t timegm(struct tm *); #endif