summaryrefslogtreecommitdiff
path: root/debian/patches-applied/glibc-2_16-compilation-fix.patch
blob: aaf57a4b93289dcabd786897664ab53963018b83 (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.debian/modules/pam_unix/pam_unix_acct.c
===================================================================
--- pam.debian.orig/modules/pam_unix/pam_unix_acct.c
+++ pam.debian/modules/pam_unix/pam_unix_acct.c
@@ -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.debian/modules/pam_unix/pam_unix_passwd.c
===================================================================
--- pam.debian.orig/modules/pam_unix/pam_unix_passwd.c
+++ pam.debian/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>