summaryrefslogtreecommitdiff
path: root/games-util/gamemode/files
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2022-08-24 02:45:57 +0100
committerV3n3RiX <venerix@koprulu.sector>2022-08-24 02:45:57 +0100
commit2d51a70c0ec989cfc28d2d9a140206a601378c58 (patch)
tree5ff136d8b7452def4a7f53ea9b4ad96dc4312c35 /games-util/gamemode/files
parent26062b5638b6d2a6eedba7797ed6dde6f3d1f01c (diff)
gentoo auto-resync : 24:08:2022 - 02:45:57
Diffstat (limited to 'games-util/gamemode/files')
-rw-r--r--games-util/gamemode/files/gamemode-1.7-glibc-2.36.patch20
1 files changed, 20 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 */
+