gentoo-ebuilds/app-benchmarks/filebench/files/filebench-1.5.0_alpha3_fix_implicit_syscall.patch
Nicolas PARLANT ef484b6b19
app-benchmarks/filebench: add 1.5.0_alpha3_p20200220
update HOMEPAGE and SRC_URI with github repo

add a snapshot after 1.5.0_alpha3
auto-completion/libtecla support removed in 1.5.0_alpha1
bug #729104 fixed in 1.5.0_alpha1
remove .la files

patches :
fix gcc-15
fix implicit function in configure
fix an issue with randomization

Closes: https://bugs.gentoo.org/729104
Closes: https://bugs.gentoo.org/906004
Closes: https://bugs.gentoo.org/943905
Signed-off-by: Nicolas PARLANT <nicolas.parlant@parhuet.fr>
Part-of: https://github.com/gentoo/gentoo/pull/43620
Closes: https://github.com/gentoo/gentoo/pull/43620
Signed-off-by: Sam James <sam@gentoo.org>
2025-09-02 12:46:39 +01:00

22 lines
849 B
Diff

PR pending / bug #906004
https://github.com/filebench/filebench/pull/160.patch
From bee9657493f66432a20d1e9e02132da5819b6133 Mon Sep 17 00:00:00 2001
From: Florian Weimer <fweimer@redhat.com>
Date: Tue, 20 Dec 2022 10:11:08 +0100
Subject: [PATCH] configure.ac: Improve C99 compatibility of HAVE_IOPRIO check
Include <unistd.h> to obtain a declaration of the syscall function.
Implicit function declarations are likely to be rejected by future
compilers by default.
--- a/configure.ac
+++ b/configure.ac
@@ -370,7 +370,8 @@ AC_TRY_COMPILE([
# check for I/O priority system calls
AC_MSG_CHECKING(for I/O priority system calls)
AC_TRY_COMPILE([
- #include <syscall.h>],
+ #include <syscall.h>
+ #include <unistd.h>],
[(void)syscall(__NR_ioprio_set, 0, 0, 0);
],[
AC_DEFINE(HAVE_IOPRIO, 1, [ Define if you have I/O priority syscalls. ])