From a1e7b2cf7000ed7e1e7486f3ba4cc75a3c348dd2 Mon Sep 17 00:00:00 2001 From: Dmitry Chestnykh Date: Tue, 30 Apr 2024 12:12:05 +0300 Subject: Define __USE_TIME_BITS64 when it is necessary. Glibc and musl both defines this macro. Glibc defines it for 64-bit time_t on 32-bit arch and for 64-bit architectures. Signed-off-by: Dmitry Chestnykh --- include/features.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'include') diff --git a/include/features.h b/include/features.h index 11b34205f..b5d4e79f2 100644 --- a/include/features.h +++ b/include/features.h @@ -437,4 +437,8 @@ # include #endif +#if defined(__UCLIBC_USE_TIME64__) || __TARGET_ARCH_BITS__ == 64 +#define __USE_TIME_BITS64 1 +#endif + #endif /* features.h */ -- cgit v1.2.3