missing: move resource related definitions to missing_resource.h

This commit is contained in:
Yu Watanabe
2018-12-06 13:25:24 +01:00
parent 0e7117d001
commit 6c76de27ee
3 changed files with 13 additions and 8 deletions
+11
View File
@@ -0,0 +1,11 @@
/* SPDX-License-Identifier: LGPL-2.1+ */
#pragma once
#include <sys/resource.h>
#ifndef RLIMIT_RTTIME
#define RLIMIT_RTTIME 15
#endif
/* If RLIMIT_RTTIME is not defined, then we cannot use RLIMIT_NLIMITS as is */
#define _RLIMIT_MAX (RLIMIT_RTTIME+1 > RLIMIT_NLIMITS ? RLIMIT_RTTIME+1 : RLIMIT_NLIMITS)