From: Darren Tucker Date: Wed, 2 Nov 2022 17:24:39 +0000 (+1100) Subject: Include time.h when defining timegm. X-Git-Tag: V_9_2_P1~154 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=96b519726b7944eee3c23a54eee3d5c031ba1533;p=thirdparty%2Fopenssh-portable.git Include time.h when defining timegm. Fixes build on some platforms eg recent AIX. --- 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