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