Bug 72574 - core-util: set_scheduler: check for RLIMIT_RTTIME
Summary: core-util: set_scheduler: check for RLIMIT_RTTIME
Status: RESOLVED FIXED
Alias: None
Product: PulseAudio
Classification: Unclassified
Component: core (show other bugs)
Version: unspecified
Hardware: Other All
: medium normal
Assignee: pulseaudio-bugs
QA Contact: pulseaudio-bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-12-10 18:33 UTC by Allison Lortie (desrt)
Modified: 2013-12-13 13:18 UTC (History)
1 user (show)

See Also:
i915 platform:
i915 features:


Attachments
[PATCH] core-util: set_scheduler: check for RLIMIT_RTTIME (1.31 KB, text/plain)
2013-12-10 18:33 UTC, Allison Lortie (desrt)
Details

Description Allison Lortie (desrt) 2013-12-10 18:33:05 UTC
Created attachment 90589 [details]
[PATCH] 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.


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.