summaryrefslogtreecommitdiff
path: root/Rules.mak
diff options
context:
space:
mode:
authorDmitry Chestnykh <dm.chestnykh@gmail.com>2024-02-26 22:13:22 +0300
committerWaldemar Brodkorb <wbx@openadk.org>2024-02-27 02:34:47 +0100
commitee7e012b71dd3a964dc8bd3a82acddc24aceebc7 (patch)
treeebbbb38d00ba688be62d129191c87998bf2e24a4 /Rules.mak
parent73017bba9d3bc0f8ada159319ff590117c9e5689 (diff)
Fix *stat() and *stat64() when the time is beyond year 2038.
To obtain correct `st_atim`, `st_mtim` and `st_ctim` fields we need to use statx() syscall and then convert the data from the kernel to the regular stat structure. Signed-off-by: Dmitry Chestnykh <dm.chestnykh@gmail.com>
Diffstat (limited to 'Rules.mak')
-rw-r--r--Rules.mak4
1 files changed, 4 insertions, 0 deletions
diff --git a/Rules.mak b/Rules.mak
index a51e98b92..55c2f81fe 100644
--- a/Rules.mak
+++ b/Rules.mak
@@ -670,6 +670,10 @@ ifeq ($(UCLIBC_HAS_STDIO_FUTEXES),y)
CFLAGS += -D__USE_STDIO_FUTEXES__
endif
+ifeq ($(UCLIBC_USE_TIME64),y)
+CFLAGS += -D__UCLIBC_HAVE_STATX__
+endif
+
ifeq ($(UCLIBC_HAS_THREADS),y)
ifeq ($(UCLIBC_HAS_THREADS_NATIVE),y)
PTNAME := nptl