pipewire: module-rt: move RLIMIT_RTTIME compat definition

Move it next to the other macros.
This commit is contained in:
Barnabás Pőcze 2025-02-28 22:09:36 +01:00 committed by Wim Taymans
parent f0579b9b67
commit 10161407ff

View file

@ -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)