git: de0a53727cd7 - stable/15 - sys/abi_types.h: time32_t is 64-bit on non-x86 architectures

From: Konstantin Belousov <kib_at_FreeBSD.org>
Date: Sat, 21 Feb 2026 21:34:55 UTC
The branch stable/15 has been updated by kib:

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

commit de0a53727cd73a4fe89d8f7c959297eff9fa1053
Author:     Olivier Certner <olce@FreeBSD.org>
AuthorDate: 2026-02-13 17:20:13 +0000
Commit:     Konstantin Belousov <kib@FreeBSD.org>
CommitDate: 2026-02-21 21:34:08 +0000

    sys/abi_types.h: time32_t is 64-bit on non-x86 architectures
    
    (cherry picked from commit 4ccca2100887943b11187787004bc8efc2a149c6)
---
 sys/sys/abi_types.h | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)

diff --git a/sys/sys/abi_types.h b/sys/sys/abi_types.h
index e449c86323f7..44d1bd733bbd 100644
--- a/sys/sys/abi_types.h
+++ b/sys/sys/abi_types.h
@@ -25,15 +25,11 @@ typedef struct {
 #endif
 } freebsd32_uint64_t;
 
-#if __SIZEOF_LONG__ == 8
-#if defined __amd64__
+#if defined(__amd64__) || defined(__i386__)
 typedef	__int32_t	time32_t;
 #else
 typedef	__int64_t	time32_t;
 #endif
-#else
-typedef	__int32_t	time32_t;
-#endif
 #define	__HAVE_TIME32_T
 
 #endif