]> git.ipfire.org Git - thirdparty/kmod.git/commitdiff
testsuite/path: s/__stat64_t64/void/
authorEmil Velikov <emil.l.velikov@gmail.com>
Sun, 15 Sep 2024 10:03:00 +0000 (11:03 +0100)
committerLucas De Marchi <lucas.de.marchi@gmail.com>
Tue, 17 Sep 2024 03:01:34 +0000 (22:01 -0500)
The exact struct varies across the build-options, but in practise is
never __stat64_t64 - this is the internal name used within glibc.

When the fstat declaration with __fstat64_time64 asm linkage is used, we
have "struct stat". Whenever the `#define stat __stat64_time64` kicks
in, both function and struct get redefined/renamed.

Since we don't care about it (apart from the pointer part) just use void.

For more details glibc commit aa03f722f3 ("linux: Add {f}stat{at} y2038
support") added internal.

Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
Link: https://github.com/kmod-project/kmod/pull/131
Signed-off-by: Lucas De Marchi <lucas.de.marchi@gmail.com>
testsuite/path.c

index 0c1faea0cdd22f0688a9375e4ddab7f235ecdf33..8bd2d8c1aacd023c89a30f44359607eb5fb0d5bf 100644 (file)
@@ -197,9 +197,8 @@ WRAP_2ARGS(int, -1, stat64, struct stat64*);
 #endif
 
 #if HAVE_DECL___GLIBC__
-struct __stat64_t64;
-extern int __stat64_time64 (const char *file, struct __stat64_t64 *buf);
-WRAP_2ARGS(int, -1, __stat64_time64, struct __stat64_t64*);
+extern int __stat64_time64 (const char *file, void *buf);
+WRAP_2ARGS(int, -1, __stat64_time64, void *);
 #endif
 
 #ifdef HAVE_OPEN64