diff --git a/pam-fix-includes.patch b/pam-fix-includes.patch new file mode 100644 index 0000000..9898b94 --- /dev/null +++ b/pam-fix-includes.patch @@ -0,0 +1,25 @@ +Index: Linux-PAM-1.1.5/modules/pam_unix/pam_unix_acct.c +=================================================================== +--- Linux-PAM-1.1.5.orig/modules/pam_unix/pam_unix_acct.c ++++ Linux-PAM-1.1.5/modules/pam_unix/pam_unix_acct.c +@@ -47,6 +47,8 @@ + #include /* for time() */ + #include + #include ++#include ++#include + + #include + +Index: Linux-PAM-1.1.5/modules/pam_unix/pam_unix_passwd.c +=================================================================== +--- Linux-PAM-1.1.5.orig/modules/pam_unix/pam_unix_passwd.c ++++ Linux-PAM-1.1.5/modules/pam_unix/pam_unix_passwd.c +@@ -54,6 +54,7 @@ + #include + #include + #include ++#include + + #include + #include diff --git a/pam.changes b/pam.changes index 3d067e2..7cedb87 100644 --- a/pam.changes +++ b/pam.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Thu Jun 21 11:59:52 UTC 2012 - aj@suse.de + +- Include correct headers for getrlimit. + ------------------------------------------------------------------- Mon Apr 23 15:30:02 UTC 2012 - jengelh@medozas.de diff --git a/pam.spec b/pam.spec index f3e61f5..7abb120 100644 --- a/pam.spec +++ b/pam.spec @@ -57,6 +57,7 @@ Source7: common-session.pamd Source8: etc.environment Source9: baselibs.conf Patch0: pam_tally-deprecated.diff +Patch1: pam-fix-includes.patch BuildRoot: %{_tmppath}/%{name}-%{version}-build %description @@ -106,6 +107,7 @@ building both PAM-aware applications and modules for use with PAM. %prep %setup -q -n Linux-PAM-%{version} -b 1 %patch0 -p0 +%patch1 -p1 %build export CFLAGS="%optflags -DNDEBUG"