at master 1.1 kB view raw
1From 1726e0a0a3b9765a4ddf99c506178d3939a46ccd Mon Sep 17 00:00:00 2001 2From: Alyssa Ross <hi@alyssa.is> 3Date: Fri, 3 May 2024 13:39:26 +0200 4Subject: [PATCH] posix: don't use LFS64 types in struct linux_dirent64 5 6The *64_t types are transitional APIs for applications that do not yet 7fully support large files on 32-bit platforms. They have been removed 8in musl 1.2.5, which caused gpgme to fail to build. Since this is for 9a raw syscall anyway, it doesn't make sense to use libc-specific types 10here anyway, so I've changed this to match the definition of the 11struct used in the kernel (except there the kernel-specific u64 and 12s64 typedefs are used instead). 13--- 14 src/posix-io.c | 4 ++-- 15 1 file changed, 2 insertions(+), 2 deletions(-) 16 17diff --git a/src/posix-io.c b/src/posix-io.c 18index a422d8f6..c943f75c 100644 19--- a/src/posix-io.c 20+++ b/src/posix-io.c 21@@ -74,8 +74,8 @@ 22 * define it ourselves. */ 23 struct linux_dirent64 24 { 25- ino64_t d_ino; 26- off64_t d_off; 27+ uint64_t d_ino; 28+ int64_t d_off; 29 unsigned short d_reclen; 30 unsigned char d_type; 31 char d_name[]; 32-- 332.44.0 34