mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2026-03-14 05:34:06 -04:00
pipewire: guard linux-specific RLIMIT_* inside #ifdef __linux__
This commit is contained in:
parent
9c7aa4d423
commit
469929d4f6
1 changed files with 6 additions and 4 deletions
|
|
@ -353,17 +353,19 @@ static int adjust_rlimits(const struct spa_dict *dict)
|
|||
[RLIMIT_CPU] = "cpu",
|
||||
[RLIMIT_DATA] = "data",
|
||||
[RLIMIT_FSIZE] = "fsize",
|
||||
[RLIMIT_LOCKS] = "locks",
|
||||
[RLIMIT_MEMLOCK] = "memlock",
|
||||
[RLIMIT_MSGQUEUE] = "msgqueue",
|
||||
[RLIMIT_NICE] = "nice",
|
||||
[RLIMIT_NOFILE] = "nofile",
|
||||
[RLIMIT_NPROC] = "nproc",
|
||||
[RLIMIT_RSS] = "rss",
|
||||
[RLIMIT_STACK] = "stack",
|
||||
#ifdef __linux__
|
||||
[RLIMIT_LOCKS] = "locks",
|
||||
[RLIMIT_MSGQUEUE] = "msgqueue",
|
||||
[RLIMIT_NICE] = "nice",
|
||||
[RLIMIT_RTPRIO] = "rtprio",
|
||||
[RLIMIT_RTTIME] = "rttime",
|
||||
[RLIMIT_SIGPENDING] = "sigpending",
|
||||
[RLIMIT_STACK] = "stack",
|
||||
#endif
|
||||
};
|
||||
int res;
|
||||
spa_dict_for_each(it, dict) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue