aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEd Maste <emaste@FreeBSD.org>2023-02-08 18:31:44 +0000
committerEd Maste <emaste@FreeBSD.org>2023-02-08 23:34:09 +0000
commit1aa9a35f6361cc898e2323e1f2823771eb4161da (patch)
tree9db557d1dd5a0bcd732344f8d39016321321aa33
parent6a70e0b4cdc606931555cdc59dc6c8d4a3ab4e3e (diff)
downloadsrc-1aa9a35f6361cc898e2323e1f2823771eb4161da.tar.gz
src-1aa9a35f6361cc898e2323e1f2823771eb4161da.zip
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
-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 582c8b09a9d7..2c576da3a38c 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