diff mbox series

[uclibc-ng-devel] Define __USE_TIME_BITS64 when it is necessary.

Message ID 20240430074933.93020-1-dm.chestnykh@gmail.com
State Superseded
Headers show
Series [uclibc-ng-devel] Define __USE_TIME_BITS64 when it is necessary. | expand

Commit Message

Dmitry Chestnykh April 30, 2024, 7:49 a.m. UTC
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 <dm.chestnykh@gmail.com>
---
 include/features.h | 4 ++++
 1 file changed, 4 insertions(+)
diff mbox series

Patch

diff --git a/include/features.h b/include/features.h
index 11b34205f..4322df7c1 100644
--- a/include/features.h
+++ b/include/features.h
@@ -437,4 +437,8 @@ 
 # include <libc-internal.h>
 #endif
 
+#ifdef __UCLIBC_USE_TIME64__ || __TARGET_ARCH_BITS__ == 64
+#define __USE_TIME_BITS64 1
+#endif
+
 #endif	/* features.h  */