Skip to content

Commit

Permalink
manifest: Workaround to build gamemode in the new Gnome 45 runtime
Browse files Browse the repository at this point in the history
  • Loading branch information
koplo199 committed Sep 27, 2023
1 parent 74dc10f commit 87d2c32
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
4 changes: 4 additions & 0 deletions com.usebottles.bottles.yml
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,10 @@ modules:
type: git
is-important: true
tag-pattern: ^([\d.]+)$
# https://github.com/FeralInteractive/gamemode/commit/4934191b1928ef695c3e8af21e75781f8591745f
# Build workaround, please remove once gamemode > 1.7 is released!
- type: patch
path: gamemode.patch

- name: gamemode-32bit
build-options:
Expand Down
13 changes: 13 additions & 0 deletions gamemode.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
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 <sys/pidfd.h>
#endif

/* pidfd functions */

0 comments on commit 87d2c32

Please sign in to comment.