]> code.delx.au - pulseaudio/commit
core-util: set_scheduler: check for RLIMIT_RTTIME
authorRyan Lortie <desrt@desrt.ca>
Tue, 10 Dec 2013 18:27:52 +0000 (13:27 -0500)
committerTanu Kaskinen <tanu.kaskinen@linux.intel.com>
Fri, 13 Dec 2013 12:00:14 +0000 (14:00 +0200)
commit6f954c76745acaaa8cae5a569702e23e83115b3b
tree210d6abb4914dd93b7800a4e72609f072f041512
parent1588212d5afdd44021fe4654175d26b644fe49ef
core-util: set_scheduler: check for RLIMIT_RTTIME

set_scheduler() assumes that if sys/resource.h was found then we will
find RLIMIT_RTTIME there, but this is a non-POSIX extension on Linux.

Change the check to ensure that RLIMIT_RTTIME is actually defined.
Linux indeed defines this as a macro, and POSIX specifies that the other
RLIMIT_ constants must be macros, so having this as an #ifdef seems
correct.
src/pulsecore/core-util.c