summaryrefslogtreecommitdiffstats
path: root/openbsd-compat/openbsd-compat.h
diff options
context:
space:
mode:
authorDarren Tucker <dtucker@dtucker.net>2022-11-02 18:24:39 +0100
committerDarren Tucker <dtucker@dtucker.net>2022-11-02 18:25:34 +0100
commit96b519726b7944eee3c23a54eee3d5c031ba1533 (patch)
tree0e425cc3ecd4aeacead916c6e69083de7d536470 /openbsd-compat/openbsd-compat.h
parentAlways use compat getentropy. (diff)
downloadopenssh-96b519726b7944eee3c23a54eee3d5c031ba1533.tar.xz
openssh-96b519726b7944eee3c23a54eee3d5c031ba1533.zip
Include time.h when defining timegm.
Fixes build on some platforms eg recent AIX.
Diffstat (limited to 'openbsd-compat/openbsd-compat.h')
-rw-r--r--openbsd-compat/openbsd-compat.h1
1 files changed, 1 insertions, 0 deletions
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.h>
time_t timegm(struct tm *);
#endif