From 517d56b1d0f67dcf76710bc1e17b05518b8cabe6 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Wed, 5 Mar 2014 02:29:58 +0100 Subject: missing: if RLIMIT_RTTIME is not defined by the libc, then we need a new define for the max number of rlimits, too --- src/core/execute.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/core/execute.h') diff --git a/src/core/execute.h b/src/core/execute.h index 2c5d8bbf76..a333657328 100644 --- a/src/core/execute.h +++ b/src/core/execute.h @@ -38,6 +38,7 @@ typedef struct ExecRuntime ExecRuntime; #include "util.h" #include "set.h" #include "fdset.h" +#include "missing.h" typedef enum ExecInput { EXEC_INPUT_NULL, @@ -93,7 +94,7 @@ struct ExecContext { char **environment; char **environment_files; - struct rlimit *rlimit[RLIMIT_NLIMITS]; + struct rlimit *rlimit[_RLIMIT_MAX]; char *working_directory, *root_directory; mode_t umask; -- cgit v1.2.3-54-g00ecf