]> git.ipfire.org Git - ipfire-2.x.git/blame - src/patches/pam-0.99.10.0-rlimit-build-fix.patch
correct wrong headline at hardwaregraphs.cgi
[ipfire-2.x.git] / src / patches / pam-0.99.10.0-rlimit-build-fix.patch
CommitLineData
990eb18b
MT
1From 8e508f23bf5ed727649c99bbd540f7b1c2c2bd35 Mon Sep 17 00:00:00 2001
2From: =?UTF-8?q?Stevan=20Baji=C4=87?= <stevan@bajic.ch>
3Date: Mon, 9 Jul 2012 09:43:11 +0200
4Subject: [PATCH] RLIMIT_* variables are no longer defined unless you
5 explicitly include sys/resource.h.
6MIME-Version: 1.0
7Content-Type: text/plain; charset=UTF-8
8Content-Transfer-Encoding: 8bit
9
10Signed-off-by: Diego Elio Pettenò <flameeyes@flameeyes.eu>
11
12modules/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
17diff --git a/modules/pam_unix/pam_unix_acct.c b/modules/pam_unix/pam_unix_acct.c
18index 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>