aboutsummaryrefslogtreecommitdiff
path: root/crypto/openssh/config.h
diff options
context:
space:
mode:
authorEd Maste <emaste@FreeBSD.org>2023-02-08 18:31:44 +0000
committerEd Maste <emaste@FreeBSD.org>2023-02-13 01:19:51 +0000
commit59ab4b95129dd5d64a52e0822b4fb5621bf65e9c (patch)
tree446db3ec1c78c71ed5a613930cd9e1fb87dad0bc /crypto/openssh/config.h
parent77733aaa51c2d1f40e7a0381c9958d07627a3bb5 (diff)
ssh: fix SIZEOF_TIME_T #define on i386
Reported by: imp Reviewed by: imp MFC after: 3 days Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D38443 (cherry picked from commit 1aa9a35f6361cc898e2323e1f2823771eb4161da)
Diffstat (limited to 'crypto/openssh/config.h')
-rw-r--r--crypto/openssh/config.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/crypto/openssh/config.h b/crypto/openssh/config.h
index 55ad3be64e69..e267ba122719 100644
--- a/crypto/openssh/config.h
+++ b/crypto/openssh/config.h
@@ -1941,7 +1941,11 @@
#define SIZEOF_SHORT_INT 2
/* The size of `time_t', as computed by sizeof. */
+#ifdef __i386__
+#define SIZEOF_TIME_T 4
+#else
#define SIZEOF_TIME_T 8
+#endif
/* Define as const if snprintf() can declare const char *fmt */
#define SNPRINTF_CONST const