diff options
author | Sam James <sam@gentoo.org> | 2022-08-24 00:07:45 +0100 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2022-08-24 00:07:45 +0100 |
commit | afb4327c2bc182f062aea233c9f20f9ddc0f27c2 (patch) | |
tree | d6815ee3775c58be21b48e8672d6fec9e05cc8f5 /games-util/gamemode | |
parent | net-fs/samba: fix build w/ glibc 2.36 (diff) | |
download | gentoo-afb4327c2bc182f062aea233c9f20f9ddc0f27c2.tar.gz gentoo-afb4327c2bc182f062aea233c9f20f9ddc0f27c2.tar.bz2 gentoo-afb4327c2bc182f062aea233c9f20f9ddc0f27c2.zip |
games-util/gamemode: fix build w/ glibc 2.36
Closes: https://bugs.gentoo.org/863995
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'games-util/gamemode')
-rw-r--r-- | games-util/gamemode/files/gamemode-1.7-glibc-2.36.patch | 20 | ||||
-rw-r--r-- | games-util/gamemode/gamemode-1.7.ebuild | 1 |
2 files changed, 21 insertions, 0 deletions
diff --git a/games-util/gamemode/files/gamemode-1.7-glibc-2.36.patch b/games-util/gamemode/files/gamemode-1.7-glibc-2.36.patch new file mode 100644 index 000000000000..bb305afd5a35 --- /dev/null +++ b/games-util/gamemode/files/gamemode-1.7-glibc-2.36.patch @@ -0,0 +1,20 @@ +https://github.com/FeralInteractive/gamemode/commit/4934191b1928ef695c3e8af21e75781f8591745f +https://bugs.gentoo.org/863995 + +From: =?UTF-8?q?Nyikos=20Zolt=C3=A1n?= <nyikoszoltan0@gmail.com> +Date: Wed, 10 Aug 2022 19:56:59 +0200 +Subject: [PATCH] Fix building when pidfd_open is available + +On glibc2.36 pidfd_open was made available, but it needs an include +--- a/common/common-pidfds.c ++++ b/common/common-pidfds.c +@@ -58,6 +58,8 @@ static int pidfd_open(pid_t pid, unsigned int flags) + { + return (int)syscall(__NR_pidfd_open, pid, flags); + } ++#else ++#include <sys/pidfd.h> + #endif + + /* pidfd functions */ + diff --git a/games-util/gamemode/gamemode-1.7.ebuild b/games-util/gamemode/gamemode-1.7.ebuild index 8e94f8d83a95..028fd6b39402 100644 --- a/games-util/gamemode/gamemode-1.7.ebuild +++ b/games-util/gamemode/gamemode-1.7.ebuild @@ -37,6 +37,7 @@ DEPEND="${RDEPEND}" PATCHES=( "${FILESDIR}"/${PN}-1.7-static-libs.patch + "${FILESDIR}"/${P}-glibc-2.36.patch ) DOCS=( |