Accepting request 125670 from home:a_jaeger:devel-glibc

Include correct headers for getrlimit.

OBS-URL: https://build.opensuse.org/request/show/125670
OBS-URL: https://build.opensuse.org/package/show/Linux-PAM/pam?expand=0&rev=90
This commit is contained in:
Thorsten Kukuk 2012-06-22 07:40:29 +00:00 committed by Git OBS Bridge
parent eded56e30d
commit 73ec5dd486
3 changed files with 32 additions and 0 deletions

25
pam-fix-includes.patch Normal file
View File

@ -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 <time.h> /* for time() */
#include <errno.h>
#include <sys/wait.h>
+#include <sys/time.h>
+#include <sys/resource.h>
#include <security/_pam_macros.h>
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 <ctype.h>
#include <sys/time.h>
#include <sys/stat.h>
+#include <sys/resource.h>
#include <signal.h>
#include <errno.h>

View File

@ -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

View File

@ -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"