]> git.ipfire.org Git - ipfire-2.x.git/blob - src/patches/pam-0.99.10.0-rlimit-build-fix.patch
Merge branch 'ipsec' into next
[ipfire-2.x.git] / src / patches / pam-0.99.10.0-rlimit-build-fix.patch
1 From 8e508f23bf5ed727649c99bbd540f7b1c2c2bd35 Mon Sep 17 00:00:00 2001
2 From: =?UTF-8?q?Stevan=20Baji=C4=87?= <stevan@bajic.ch>
3 Date: Mon, 9 Jul 2012 09:43:11 +0200
4 Subject: [PATCH] RLIMIT_* variables are no longer defined unless you
5 explicitly include sys/resource.h.
6 MIME-Version: 1.0
7 Content-Type: text/plain; charset=UTF-8
8 Content-Transfer-Encoding: 8bit
9
10 Signed-off-by: Diego Elio Pettenò <flameeyes@flameeyes.eu>
11
12 modules/pam_unix/pam_unix_acct.c: Include sys/resource.h.
13 ---
14 modules/pam_unix/pam_unix_acct.c | 1 +
15 1 file changed, 1 insertion(+)
16
17 diff --git a/modules/pam_unix/pam_unix_acct.c b/modules/pam_unix/pam_unix_acct.c
18 index 8e90cc9..4a362f8 100644
19 --- a/modules/pam_unix/pam_unix_acct.c
20 +++ b/modules/pam_unix/pam_unix_acct.c
21 @@ -41,6 +41,7 @@
22 #include <string.h>
23 #include <unistd.h>
24 #include <sys/types.h>
25 +#include <sys/resource.h>
26 #include <syslog.h>
27 #include <pwd.h>
28 #include <shadow.h>