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-14 22:33:56 +0000
commit26b9c45c8f65dbd30bc41f1928db8cd66bb154bb (patch)
treecb7c554b36b0b1bbecc631c932cfe1484375cde6
parentb158a379d2716d55e59978b970c146ff5284f36c (diff)
downloadsrc-26b9c45c8f65dbd30bc41f1928db8cd66bb154bb.tar.gz
src-26b9c45c8f65dbd30bc41f1928db8cd66bb154bb.zip
ssh: fix SIZEOF_TIME_T #define on i386
Reported by: imp Reviewed by: imp Approved by: re (cperciva) Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D38443 (cherry picked from commit 1aa9a35f6361cc898e2323e1f2823771eb4161da) (cherry picked from commit 59ab4b95129dd5d64a52e0822b4fb5621bf65e9c)
-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