Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 13 Feb 2023 01:20:31 GMT
From:      Ed Maste <emaste@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org
Subject:   git: d795444930d1 - stable/12 - ssh: fix SIZEOF_TIME_T #define on i386
Message-ID:  <202302130120.31D1KVsq062947@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch stable/12 has been updated by emaste:

URL: https://cgit.FreeBSD.org/src/commit/?id=d795444930d17ae2a5c3e44ba0b8f4eb4404118f

commit d795444930d17ae2a5c3e44ba0b8f4eb4404118f
Author:     Ed Maste <emaste@FreeBSD.org>
AuthorDate: 2023-02-08 18:31:44 +0000
Commit:     Ed Maste <emaste@FreeBSD.org>
CommitDate: 2023-02-13 01:20:24 +0000

    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)
    (cherry picked from commit 59ab4b95129dd5d64a52e0822b4fb5621bf65e9c)
---
 crypto/openssh/config.h | 4 ++++
 1 file changed, 4 insertions(+)

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202302130120.31D1KVsq062947>