From e7be246938369be0db57e2fa62133780e9e5fccc Mon Sep 17 00:00:00 2001 From: Michal Vasilek Date: Mon, 21 Nov 2022 18:43:33 +0100 Subject: [PATCH] gamemode: fix build with glibc 2.36 --- srcpkgs/gamemode/patches/glibc-2.36.patch | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 srcpkgs/gamemode/patches/glibc-2.36.patch diff --git a/srcpkgs/gamemode/patches/glibc-2.36.patch b/srcpkgs/gamemode/patches/glibc-2.36.patch new file mode 100644 index 00000000000..d04b315cf64 --- /dev/null +++ b/srcpkgs/gamemode/patches/glibc-2.36.patch @@ -0,0 +1,23 @@ +From 19832cf103ac4af70711ead9cc00fd23e073bb78 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Nyikos=20Zolt=C3=A1n?= +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 +--- + common/common-pidfds.c | 2 ++ + 1 file changed, 2 insertions(+) + +diff --git a/common/common-pidfds.c b/common/common-pidfds.c +index 00929f70..61442e34 100644 +--- 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 + #endif + + /* pidfd functions */