pam_login: Fix build on recent glibc.
svn path=/nixpkgs/trunk/; revision=21337
This commit is contained in:
parent
7802763b45
commit
76b699eb22
|
@ -8,6 +8,8 @@ stdenv.mkDerivation {
|
||||||
sha256 = "1w2hpwjhmwjhf8rg789xpl0hibahqlr3ccivfy3m4kgrm5gf04kv";
|
sha256 = "1w2hpwjhmwjhf8rg789xpl0hibahqlr3ccivfy3m4kgrm5gf04kv";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
patches = [ ./sys-stat-h.patch ];
|
||||||
|
|
||||||
# To overcome a gcc 4.4 warning:
|
# To overcome a gcc 4.4 warning:
|
||||||
# "#ident is a deprecated GCC extension"
|
# "#ident is a deprecated GCC extension"
|
||||||
patchPhase = ''
|
patchPhase = ''
|
||||||
|
|
12
pkgs/os-specific/linux/pam_login/sys-stat-h.patch
Normal file
12
pkgs/os-specific/linux/pam_login/sys-stat-h.patch
Normal file
|
@ -0,0 +1,12 @@
|
||||||
|
Include the needed <sys/stat.h> since recent glibc is stricter about that.
|
||||||
|
|
||||||
|
--- pam_login-3.35/src/login.c~ 2007-05-04 14:07:49.000000000 +0200
|
||||||
|
+++ pam_login-3.35/src/login.c 2010-04-27 11:38:13.000000000 +0200
|
||||||
|
@@ -47,6 +47,7 @@
|
||||||
|
#include <signal.h>
|
||||||
|
#include <stdio.h>
|
||||||
|
#include <string.h>
|
||||||
|
+#include <sys/stat.h>
|
||||||
|
#include <sys/ioctl.h>
|
||||||
|
#include <sys/param.h>
|
||||||
|
#include <sys/resource.h>
|
Loading…
Reference in a new issue