void-packages/srcpkgs/pipewire/patches/fix-usage-of-rlimit-rttime....

30 lines
791 B
Diff

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
@@ -95,6 +95,10 @@ struct impl {
#define RTKIT_SERVICE_NAME "org.freedesktop.RealtimeKit1"
#define RTKIT_OBJECT_PATH "/org/freedesktop/RealtimeKit1"
+#ifndef RLIMIT_RTTIME
+#define RLIMIT_RTTIME 15
+#endif
+
/** \cond */
struct pw_rtkit_bus {
DBusConnection *bus;
--
2.19.2