1From 186878405324e96f61d896a149f623e0c792c972 Mon Sep 17 00:00:00 2001 2From: Max Filippov <jcmvbkbc@gmail.com> 3Date: Tue, 14 May 2024 23:18:56 -0700 4Subject: [PATCH] fix kernel_stat64 definition 5 6The commit 74ca8d6f5d2e ("remove UCLIBC_HAS_LFS") removed conditional 7compilation dependent on __UCLIBC_HAS_LFS__, assuming it to be always 8defined, but removed the wrong branch in the definition of 9kernel_stat64. 10Fix kernel_stat64 definition to be stat64. 11 12Signed-off-by: Max Filippov <jcmvbkbc@gmail.com> 13Tested-by: Chris Packham <judge.packham@gmail.com> 14Signed-off-by: Waldemar Brodkorb <wbx@openadk.org> 15Upstream: https://cgit.uclibc-ng.org/cgi/cgit/uclibc-ng.git/commit/?id=186878405324e96f61d896a149f623e0c792c972 16--- 17 libc/sysdeps/linux/common-generic/bits/kernel_stat.h | 2 +- 18 1 file changed, 1 insertion(+), 1 deletion(-) 19 20diff --git a/libc/sysdeps/linux/common-generic/bits/kernel_stat.h b/libc/sysdeps/linux/common-generic/bits/kernel_stat.h 21index 7a97bb4d7..e874a4a9f 100644 22--- a/libc/sysdeps/linux/common-generic/bits/kernel_stat.h 23+++ b/libc/sysdeps/linux/common-generic/bits/kernel_stat.h 24@@ -18,7 +18,7 @@ 25 * However that requires more #ifndef in relevant wrappers, 26 * further uglifying them 27 */ 28-#define kernel_stat64 stat 29+#define kernel_stat64 stat64 30 31 #endif /* _BITS_STAT_STRUCT_H */ 32 33-- 342.30.2 35 36