aboutsummaryrefslogtreecommitdiffstats
path: root/testing/apparmor/0004-Define-RLIMIT_OFILE-if-needed.patch
blob: 804550aa0ec6e8b04a835b08444bd6bd34ce6dbd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
diff --git a/parser/parser_misc.c b/parser/parser_misc.c
index f7772e6..90e8b9c 100644
--- a/parser/parser_misc.c
+++ b/parser/parser_misc.c
@@ -124,6 +124,9 @@ static struct keyword_table rlimit_table[] = {
 	{"core",		RLIMIT_CORE},
 	{"rss",			RLIMIT_RSS},
 	{"nofile",		RLIMIT_NOFILE},
+#ifndef RLIMIT_OFILE
+#define RLIMIT_OFILE RLIMIT_NOFILE
+#endif
 	{"ofile",		RLIMIT_OFILE},
 	{"as",			RLIMIT_AS},
 	{"nproc",		RLIMIT_NPROC},
-- 
2.11.2