diff options
| author | Alfred Wingate <parona@protonmail.com> | 2024-10-19 08:53:25 +0300 |
|---|---|---|
| committer | Arthur Zamarin <arthurzam@gentoo.org> | 2024-10-20 22:33:42 +0300 |
| commit | 3ac67989573aeea738011373bcac8d835e6f163f (patch) | |
| tree | d104b5920d1fb7c8b9bf171f6dce6ec1abdf264c /app-benchmarks/iozone/files/iozone-3.506-include-function-parameters.patch | |
| parent | 68e96354beefb3f1e1cdafaa54f106c79ed5f501 (diff) | |
| download | gentoo-3ac67989573aeea738011373bcac8d835e6f163f.tar.gz gentoo-3ac67989573aeea738011373bcac8d835e6f163f.tar.bz2 gentoo-3ac67989573aeea738011373bcac8d835e6f163f.zip | |
app-benchmarks/iozone: add 3.506
Closes: https://bugs.gentoo.org/894334
Closes: https://bugs.gentoo.org/871093
Closes: https://bugs.gentoo.org/729118
Signed-off-by: Alfred Wingate <parona@protonmail.com>
Closes: https://github.com/gentoo/gentoo/pull/39038
Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
Diffstat (limited to 'app-benchmarks/iozone/files/iozone-3.506-include-function-parameters.patch')
| -rw-r--r-- | app-benchmarks/iozone/files/iozone-3.506-include-function-parameters.patch | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/app-benchmarks/iozone/files/iozone-3.506-include-function-parameters.patch b/app-benchmarks/iozone/files/iozone-3.506-include-function-parameters.patch new file mode 100644 index 000000000000..6b1421f4bb5e --- /dev/null +++ b/app-benchmarks/iozone/files/iozone-3.506-include-function-parameters.patch @@ -0,0 +1,23 @@ +Clang won't allow an incorrect redeclaration. + +iozone.c:1272:9: error: redeclaration of 'pread64' must have the 'overloadable' attribute + 1272 | ssize_t pread64(); + | ^ +/usr/include/bits/unistd.h:66:1: note: previous overload of function is here + 66 | pread64 (int __fd, __fortify_clang_overload_arg0 (void *, ,__buf), + | ^ + +--- a/src/current/iozone.c 2023-05-01 06:29:49.000000000 +0300 ++++ b/src/current/iozone.c 2024-10-19 08:44:44.697717249 +0300 +@@ -1268,8 +1268,8 @@ + + #ifdef HAVE_ANSIC_C + #if defined (HAVE_PREAD) && defined(_LARGEFILE64_SOURCE) +-ssize_t pwrite64(); +-ssize_t pread64(); ++ssize_t pwrite64(int fd, const void *buf, size_t count, off_t offset); ++ssize_t pread64(int fd, void *buf, size_t count, off_t offset); + #endif + #if !defined(linux) + char *getenv(); + |
