mirror of
https://github.com/void-linux/void-packages.git
synced 2025-06-07 07:33:48 +02:00
pipewire: switch RLIMIT_RTTIME patch to one being upstreamed
This commit is contained in:
parent
0fbfc8f5cd
commit
9e5c2053d2
2 changed files with 26 additions and 15 deletions
|
@ -1,18 +1,29 @@
|
||||||
|
From f38ad123abd730258a483ca224a01ca059ce8a06 Mon Sep 17 00:00:00 2001
|
||||||
|
From: maxice8 <thinkabit.ukim@gmail.com>
|
||||||
|
Date: Thu, 22 Nov 2018 19:16:24 -0200
|
||||||
|
Subject: [PATCH] module-rtkit: define RLIMIT_RTTIME in case it isn't defined.
|
||||||
|
|
||||||
|
musl libc doesn't define RLIMIT_RTTIME
|
||||||
|
---
|
||||||
|
src/modules/module-rtkit.c | 4 ++++
|
||||||
|
1 file changed, 4 insertions(+)
|
||||||
|
|
||||||
|
diff --git a/src/modules/module-rtkit.c b/src/modules/module-rtkit.c
|
||||||
|
index b83db9c4..3670cdeb 100644
|
||||||
--- src/modules/module-rtkit.c
|
--- src/modules/module-rtkit.c
|
||||||
+++ src/modules/module-rtkit.c
|
+++ src/modules/module-rtkit.c
|
||||||
@@ -417,6 +417,7 @@ static void idle_func(struct spa_source *source)
|
@@ -95,6 +95,10 @@ struct impl {
|
||||||
system_bus = pw_rtkit_bus_get_system();
|
#define RTKIT_SERVICE_NAME "org.freedesktop.RealtimeKit1"
|
||||||
|
#define RTKIT_OBJECT_PATH "/org/freedesktop/RealtimeKit1"
|
||||||
|
|
||||||
rl.rlim_cur = rl.rlim_max = rttime;
|
+#ifndef RLIMIT_RTTIME
|
||||||
+#ifdef RLIMIT_RTTIME
|
+#define RLIMIT_RTTIME 15
|
||||||
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
|
+#endif
|
||||||
|
+
|
||||||
if ((r = pw_rtkit_make_realtime(system_bus, 0, rtprio)) < 0) {
|
/** \cond */
|
||||||
pw_log_debug("could not make thread realtime: %s", strerror(r));
|
struct pw_rtkit_bus {
|
||||||
|
DBusConnection *bus;
|
||||||
|
--
|
||||||
|
2.19.2
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
# Template file for 'pipewire'
|
# Template file for 'pipewire'
|
||||||
pkgname=pipewire
|
pkgname=pipewire
|
||||||
version=0.2.4
|
version=0.2.4
|
||||||
revision=1
|
revision=2
|
||||||
build_style=meson
|
build_style=meson
|
||||||
configure_args="-Dman=true -Dgstreamer=enabled -Ddocs=true -Dsystemd=false"
|
configure_args="-Dman=true -Dgstreamer=enabled -Ddocs=true -Dsystemd=false"
|
||||||
hostmakedepends="doxygen graphviz pkg-config xmltoman"
|
hostmakedepends="doxygen graphviz pkg-config xmltoman"
|
||||||
|
|
Loading…
Add table
Reference in a new issue