gentoo-ebuilds/app-benchmarks/iozone/files/iozone-3.506-include-function-parameters.patch
Alfred Wingate 3ac6798957
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>
2024-10-20 22:33:42 +03:00

23 lines
813 B
Diff

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();