[openssh-commits] [openssh] 01/01: Include time.h when defining timegm.

git+noreply at mindrot.org git+noreply at mindrot.org
Thu Nov 3 04:25:47 AEDT 2022


This is an automated email from the git hooks/post-receive script.

dtucker pushed a commit to branch master
in repository openssh.

commit 96b519726b7944eee3c23a54eee3d5c031ba1533
Author: Darren Tucker <dtucker at dtucker.net>
Date:   Thu Nov 3 04:24:39 2022 +1100

    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 8f815090..895ecf9e 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.h>
 time_t timegm(struct tm *);
 #endif
 

-- 
To stop receiving notification emails like this one, please contact
djm at mindrot.org.


More information about the openssh-commits mailing list