diff --git a/src/modules/meson.build b/src/modules/meson.build index f90b61077..ee724bf52 100644 --- a/src/modules/meson.build +++ b/src/modules/meson.build @@ -131,8 +131,6 @@ pipewire_module_profiler = shared_library('pipewire-module-profiler', dependencies : [spa_dep, mathlib, dl_lib, pipewire_dep], ) - - pipewire_module_rt = shared_library('pipewire-module-rt', [ 'module-rt.c' ], include_directories : [configinc], install : true, @@ -153,7 +151,7 @@ pipewire_module_rtkit = shared_library('pipewire-module-rtkit', [ 'module-rt.c' dependencies : [dbus_dep, mathlib, dl_lib, pipewire_dep], ) endif -summary({'rtkit': build_module_rtkit}, bool_yn: true, section: 'Optional Modules') +summary({'rt': '@0@ RTKit'.format(build_module_rtkit ? 'with' : 'without')}, section: 'Optional Modules') build_module_portal = dbus_dep.found() if build_module_portal diff --git a/src/modules/module-rt.c b/src/modules/module-rt.c index bd37e84c4..1e4d1f4a1 100644 --- a/src/modules/module-rt.c +++ b/src/modules/module-rt.c @@ -557,9 +557,6 @@ static int set_rlimit(struct impl *impl) { struct rlimit rl; int res = 0; -#ifdef HAVE_DBUS - long long rttime; -#endif spa_zero(rl); rl.rlim_cur = impl->rt_time_soft; @@ -567,6 +564,7 @@ static int set_rlimit(struct impl *impl) #ifdef HAVE_DBUS if (impl->use_rtkit) { + long long rttime; rttime = pw_rtkit_get_rttime_usec_max(impl->system_bus); if (rttime >= 0) { if ((rlim_t)rttime < rl.rlim_cur) {