summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorDmitry Chestnykh <dm.chestnykh@gmail.com>2024-04-30 12:12:05 +0300
committerWaldemar Brodkorb <wbx@openadk.org>2024-04-30 12:03:55 +0200
commita1e7b2cf7000ed7e1e7486f3ba4cc75a3c348dd2 (patch)
tree101f9ca3ca0a97a3d6b1fab40db6d88577b3cba1 /include
parent66c855560d4b79547861de48f04dff90387f918e (diff)
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 <dm.chestnykh@gmail.com>
Diffstat (limited to 'include')
-rw-r--r--include/features.h4
1 files changed, 4 insertions, 0 deletions
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 <libc-internal.h>
#endif
+#if defined(__UCLIBC_USE_TIME64__) || __TARGET_ARCH_BITS__ == 64
+#define __USE_TIME_BITS64 1
+#endif
+
#endif /* features.h */