diff --git a/gamemode.changes b/gamemode.changes
index afa8f54..a5bbe9b 100644
--- a/gamemode.changes
+++ b/gamemode.changes
@@ -1,3 +1,9 @@
+-------------------------------------------------------------------
+Sat Sep  3 11:47:40 UTC 2022 - Matthias Bach <marix@marix.org> - 1.7
+
+- Add a workaround for building on Tumbleweed where detection of
+  the pidfd_open function does not work properly.
+
 -------------------------------------------------------------------
 Fri Jul 22 18:27:05 UTC 2022 - Matthias Bach <marix@marix.org> - 1.7
 
diff --git a/gamemode.spec b/gamemode.spec
index 5c4c336..ececaa6 100644
--- a/gamemode.spec
+++ b/gamemode.spec
@@ -113,6 +113,9 @@ built-in GameMode support.
 
 cp %{SOURCE3} .
 
+# Work around broken pidfd_open detection on Tumbleweed
+sed -i 's/pidfd_open = .*/pidfd_open = false/' meson.build
+
 %build
 %meson -Dwith-examples=false
 %meson_build