summaryrefslogtreecommitdiffstats
path: root/package/linux-pam/linux-pam-RLIMIT_-variables-are-no-longer-defined-unless-you-e.patch
diff options
context:
space:
mode:
authorArnout Vandecappelle (Essensium/Mind) <arnout@mind.be>2013-05-12 07:40:13 +0000
committerPeter Korsgaard <jacmet@sunsite.dk>2013-05-12 21:02:35 +0200
commitd6fa07ffae88c284f41bd5948698a89484c53e10 (patch)
tree416eceef72ee001b70ebcf59fc51704581e35f02 /package/linux-pam/linux-pam-RLIMIT_-variables-are-no-longer-defined-unless-you-e.patch
parent401a3d98e10f7a35614434758aac3115a30972f3 (diff)
downloadbuildroot-novena-d6fa07ffae88c284f41bd5948698a89484c53e10.tar.gz
buildroot-novena-d6fa07ffae88c284f41bd5948698a89484c53e10.zip
linux-pam: fix missing includes
Two patches taken from upstream fix e.g. http://autobuild.buildroot.org/results/fa31431066ce0f9c554bdb923e59aa0458508224 These patches are in linux-pam 1.1.6 already, but since I don't know how to test it, I don't want to do a version bump. Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
Diffstat (limited to 'package/linux-pam/linux-pam-RLIMIT_-variables-are-no-longer-defined-unless-you-e.patch')
-rw-r--r--package/linux-pam/linux-pam-RLIMIT_-variables-are-no-longer-defined-unless-you-e.patch28
1 files changed, 28 insertions, 0 deletions
diff --git a/package/linux-pam/linux-pam-RLIMIT_-variables-are-no-longer-defined-unless-you-e.patch b/package/linux-pam/linux-pam-RLIMIT_-variables-are-no-longer-defined-unless-you-e.patch
new file mode 100644
index 000000000..a73ada6bf
--- /dev/null
+++ b/package/linux-pam/linux-pam-RLIMIT_-variables-are-no-longer-defined-unless-you-e.patch
@@ -0,0 +1,28 @@
+Date: Mon, 9 Jul 2012 09:43:11 +0200
+Subject: [PATCH] RLIMIT_* variables are no longer defined unless you
+ explicitly include sys/resource.h.
+
+Signed-off-by: Diego Elio Pettenò <flameeyes@flameeyes.eu>
+
+modules/pam_unix/pam_unix_acct.c: Include sys/resource.h.
+Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
+[This patch is in linux-pam 1.1.6]
+---
+ modules/pam_unix/pam_unix_acct.c | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/modules/pam_unix/pam_unix_acct.c b/modules/pam_unix/pam_unix_acct.c
+index 8e90cc9..4a362f8 100644
+--- a/modules/pam_unix/pam_unix_acct.c
++++ b/modules/pam_unix/pam_unix_acct.c
+@@ -41,6 +41,7 @@
+ #include <string.h>
+ #include <unistd.h>
+ #include <sys/types.h>
++#include <sys/resource.h>
+ #include <syslog.h>
+ #include <pwd.h>
+ #include <shadow.h>
+--
+1.8.2.1
+