]> git.ipfire.org Git - thirdparty/systemd.git/blob - src/basic/missing_resource.h
Merge pull request #11827 from keszybz/pkgconfig-variables
[thirdparty/systemd.git] / src / basic / missing_resource.h
1 /* SPDX-License-Identifier: LGPL-2.1+ */
2 #pragma once
3
4 #include <sys/resource.h>
5
6 #ifndef RLIMIT_RTTIME
7 #define RLIMIT_RTTIME 15
8 #endif
9
10 /* If RLIMIT_RTTIME is not defined, then we cannot use RLIMIT_NLIMITS as is */
11 #define _RLIMIT_MAX (RLIMIT_RTTIME+1 > RLIMIT_NLIMITS ? RLIMIT_RTTIME+1 : RLIMIT_NLIMITS)