diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-06-13 04:30:18 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-06-13 04:30:18 +0000 |
commit | 6ea7bb2850107d4aff12988b85b0369ae58cf2a0 (patch) | |
tree | 53aa2792b37b66f83d63cb521077fc3f6139c221 /testsuite | |
parent | Releasing progress-linux version 32+20240327-1~progress7.99u1. (diff) | |
download | kmod-6ea7bb2850107d4aff12988b85b0369ae58cf2a0.tar.xz kmod-6ea7bb2850107d4aff12988b85b0369ae58cf2a0.zip |
Merging upstream version 32+20240611.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-rw-r--r-- | testsuite/path.c | 9 | ||||
-rw-r--r-- | testsuite/testsuite.c | 1 |
2 files changed, 9 insertions, 1 deletions
diff --git a/testsuite/path.c b/testsuite/path.c index 5a291b1..00935fb 100644 --- a/testsuite/path.c +++ b/testsuite/path.c @@ -18,6 +18,7 @@ /* We unset _FILE_OFFSET_BITS here so we can override both stat and stat64 on * 32-bit architectures and forward each to the right libc function */ #undef _FILE_OFFSET_BITS +#undef _TIME_BITS #include <assert.h> #include <dirent.h> @@ -202,8 +203,14 @@ WRAP_2ARGS(int, -1, stat, struct stat*); WRAP_2ARGS(int, -1, lstat, struct stat*); WRAP_2ARGS(int, -1, stat64, struct stat64*); WRAP_2ARGS(int, -1, lstat64, struct stat64*); -WRAP_OPEN(64); +struct __stat64_t64; +extern int __stat64_time64 (const char *file, struct __stat64_t64 *buf); +extern int __lstat64_time64 (const char *file, struct __stat64_t64 *buf); +WRAP_2ARGS(int, -1, __stat64_time64, struct __stat64_t64*); +WRAP_2ARGS(int, -1, __lstat64_time64, struct __stat64_t64*); + +WRAP_OPEN(64); WRAP_OPEN(); #ifdef HAVE___XSTAT diff --git a/testsuite/testsuite.c b/testsuite/testsuite.c index 318343a..f4280be 100644 --- a/testsuite/testsuite.c +++ b/testsuite/testsuite.c @@ -32,6 +32,7 @@ #include <sys/stat.h> #include <sys/wait.h> +#include <shared/missing.h> #include <shared/util.h> #include "testsuite.h" |