[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:26:15 AEDT 2022


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

dtucker pushed a commit to branch V_9_1
in repository openssh.

commit 380dd8b313fc58a38f4f7c90da7df02bee16bef7
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