From: Emil Velikov Date: Sun, 15 Sep 2024 10:03:00 +0000 (+0100) Subject: testsuite/path: s/__stat64_t64/void/ X-Git-Tag: v34~339 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=62c97004f60f75cdd0ac7309782412f9b41bdd66;p=thirdparty%2Fkmod.git testsuite/path: s/__stat64_t64/void/ 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 Link: https://github.com/kmod-project/kmod/pull/131 Signed-off-by: Lucas De Marchi --- diff --git a/testsuite/path.c b/testsuite/path.c index 0c1faea0..8bd2d8c1 100644 --- a/testsuite/path.c +++ b/testsuite/path.c @@ -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