summaryrefslogtreecommitdiff
path: root/debian/patches-applied/glibc-2_16-compilation-fix.patch
blob: 921c8b5c12e2f47a230e5e462ef9264fd08da0b8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
Author: Daniel Schepler <dschepler@gmail.com>
Description: fix missing include causing build failure with eglibc 2.16
 eglibc 2.16 is more strict in its handling of <sys/resource.h>, so fix
 our includes here to address a build failure.
Bug-Debian: http://bugs.debian.org/693450

Index: pam-1.1.3/modules/pam_unix/pam_unix_acct.c
===================================================================
--- pam-1.1.3.orig/modules/pam_unix/pam_unix_acct.c	2012-08-11 23:05:09.000000000 +0000
+++ pam-1.1.3/modules/pam_unix/pam_unix_acct.c	2012-08-11 23:05:29.000000000 +0000
@@ -47,6 +47,7 @@
 #include <time.h>		/* for time() */
 #include <errno.h>
 #include <sys/wait.h>
+#include <sys/resource.h>
 
 #include <security/_pam_macros.h>
 
Index: pam-1.1.3/modules/pam_unix/pam_unix_passwd.c
===================================================================
--- pam-1.1.3.orig/modules/pam_unix/pam_unix_passwd.c	2012-08-11 23:05:29.000000000 +0000
+++ pam-1.1.3/modules/pam_unix/pam_unix_passwd.c	2012-08-11 23:09:06.000000000 +0000
@@ -54,6 +54,7 @@
 #include <ctype.h>
 #include <sys/time.h>
 #include <sys/stat.h>
+#include <sys/resource.h>
 #include <rpc/rpc.h>
 #ifdef HAVE_RPCSVC_YP_PROT_H
 #include <rpcsvc/yp_prot.h>