Merge pull request #292616 from alyssais/libredirect-LFS64

libredirect: don't test LFS64 functions on musl
This commit is contained in:
Sandro 2024-03-02 20:31:14 +01:00 committed by GitHub
commit 0c448ca515
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -74,7 +74,7 @@ int main(int argc, char *argv[])
FILE *testfp;
int testfd;
struct stat testsb;
#ifndef __APPLE__
#ifdef __GLIBC__
struct stat64 testsb64;
#endif
#if defined(__linux__) && defined(STATX_TYPE)
@ -93,11 +93,11 @@ int main(int argc, char *argv[])
assert(access(TESTPATH, X_OK) == 0);
assert(stat(TESTPATH, &testsb) != -1);
#ifndef __APPLE__
#ifdef __GLIBC__
assert(stat64(TESTPATH, &testsb64) != -1);
#endif
assert(fstatat(123, TESTPATH, &testsb, 0) != -1);
#ifndef __APPLE__
#ifdef __GLIBC__
assert(fstatat64(123, TESTPATH, &testsb64, 0) != -1);
#endif
#if defined(__linux__) && defined(STATX_TYPE)