]> git.ipfire.org Git - thirdparty/systemd.git/blame - src/basic/missing_resource.h
license: LGPL-2.1+ -> LGPL-2.1-or-later
[thirdparty/systemd.git] / src / basic / missing_resource.h
CommitLineData
db9ecf05 1/* SPDX-License-Identifier: LGPL-2.1-or-later */
6c76de27
YW
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)