void-packages/srcpkgs/pipewire/patches/fix-usage-of-rlimit-rttime.patch
maxice8 84cf3337ec pipewire: update to 0.1.9.
Closes: #11977 [via git-merge-pr]
2018-03-06 20:05:39 -08:00

18 lines
627 B
Diff

--- src/modules/module-rtkit.c
+++ src/modules/module-rtkit.c
@@ -417,6 +417,7 @@ static void idle_func(struct spa_source *source)
system_bus = pw_rtkit_bus_get_system();
rl.rlim_cur = rl.rlim_max = rttime;
+#ifdef RLIMIT_RTTIME
if ((r = setrlimit(RLIMIT_RTTIME, &rl)) < 0)
pw_log_debug("setrlimit() failed: %s", strerror(errno));
@@ -430,6 +431,7 @@ static void idle_func(struct spa_source *source)
pw_log_debug("setrlimit() failed: %s", strerror(errno));
}
}
+#endif
if ((r = pw_rtkit_make_realtime(system_bus, 0, rtprio)) < 0) {
pw_log_debug("could not make thread realtime: %s", strerror(r));