]> git.ipfire.org Git - thirdparty/openssh-portable.git/commitdiff
Include time.h when defining timegm.
authorDarren Tucker <dtucker@dtucker.net>
Wed, 2 Nov 2022 17:24:39 +0000 (04:24 +1100)
committerDarren Tucker <dtucker@dtucker.net>
Wed, 2 Nov 2022 17:24:39 +0000 (04:24 +1100)
Fixes build on some platforms eg recent AIX.

openbsd-compat/openbsd-compat.h

index 8f8150905c15c546e20119284ba71e34a21ebd1a..895ecf9ea111dbb35f827fad79b901fb12184822 100644 (file)
@@ -339,6 +339,7 @@ struct tm *localtime_r(const time_t *, struct tm *);
 #endif
 
 #ifndef HAVE_TIMEGM
+#include <time.h>
 time_t timegm(struct tm *);
 #endif