From: Lucas De Marchi Date: Mon, 30 Jan 2012 15:45:55 +0000 (-0200) Subject: testsuite: let stat.h take care of stat64 X-Git-Tag: v5~46 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=81e8b8042ae323dc42793b748584094a4c05684d;p=thirdparty%2Fkmod.git testsuite: let stat.h take care of stat64 This fixes testsuite build in 32 bits machines. --- diff --git a/testsuite/path.c b/testsuite/path.c index d70f31e1..75dbf7c0 100644 --- a/testsuite/path.c +++ b/testsuite/path.c @@ -157,24 +157,6 @@ TS_EXPORT int stat(const char *path, struct stat *st) return _stat(p, st); } -TS_EXPORT int stat64(const char *path, struct stat64 *st) -{ - const char *p; - char buf[PATH_MAX * 2]; - static int (*_stat64)(const char *path, struct stat64 *buf); - - if (!get_rootpath(__func__)) - return -1; - - _stat64 = get_libc_func("stat64"); - - p = trap_path(path, buf); - if (p == NULL) - return -1; - - return _stat64(p, st); -} - TS_EXPORT int __xstat(int ver, const char *path, struct stat *st) { const char *p;