From 10161407ff5ac00208b05802ca26da8211f8f86d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Barnab=C3=A1s=20P=C5=91cze?= Date: Fri, 28 Feb 2025 22:09:36 +0100 Subject: [PATCH] pipewire: module-rt: move `RLIMIT_RTTIME` compat definition Move it next to the other macros. --- src/modules/module-rt.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/modules/module-rt.c b/src/modules/module-rt.c index 71153a84b..96499cf8c 100644 --- a/src/modules/module-rt.c +++ b/src/modules/module-rt.c @@ -142,6 +142,10 @@ PW_LOG_TOPIC_STATIC(mod_topic, "mod." NAME); #define SCHED_RESET_ON_FORK 0 #endif +#ifndef RLIMIT_RTTIME +#define RLIMIT_RTTIME 15 +#endif + #define MIN_NICE_LEVEL -20 #define MAX_NICE_LEVEL 19 #define IS_VALID_NICE_LEVEL(l) ((l)>=MIN_NICE_LEVEL && (l)<=MAX_NICE_LEVEL) @@ -239,10 +243,6 @@ struct impl { #endif }; -#ifndef RLIMIT_RTTIME -#define RLIMIT_RTTIME 15 -#endif - static pthread_mutex_t rlimit_lock = PTHREAD_MUTEX_INITIALIZER; static pid_t _gettid(void)