aboutsummaryrefslogtreecommitdiffstats
path: root/main/linux-pam/fix-compat.patch
diff options
context:
space:
mode:
authorTimo Teräs <timo.teras@iki.fi>2013-10-08 10:40:52 +0000
committerTimo Teräs <timo.teras@iki.fi>2013-10-08 10:40:52 +0000
commit18d1cb5dde72658fcb91eb21864b5c22b44f0cab (patch)
tree198998f87fc12a62ba5699f49b4a78d4c98e5a5a /main/linux-pam/fix-compat.patch
parent364d51e6f42a946e9fa61b30d094350e724868f2 (diff)
downloadaports-18d1cb5dde72658fcb91eb21864b5c22b44f0cab.tar.bz2
aports-18d1cb5dde72658fcb91eb21864b5c22b44f0cab.tar.xz
main/linux-pam: upgrade to 1.1.8, and fix musl build
Diffstat (limited to 'main/linux-pam/fix-compat.patch')
-rw-r--r--main/linux-pam/fix-compat.patch21
1 files changed, 21 insertions, 0 deletions
diff --git a/main/linux-pam/fix-compat.patch b/main/linux-pam/fix-compat.patch
new file mode 100644
index 0000000000..4096c3a475
--- /dev/null
+++ b/main/linux-pam/fix-compat.patch
@@ -0,0 +1,21 @@
+--- Linux-PAM-1.1.6.orig/modules/pam_lastlog/pam_lastlog.c
++++ Linux-PAM-1.1.6/modules/pam_lastlog/pam_lastlog.c
+@@ -10,6 +10,7 @@
+
+ #include "config.h"
+
++#include <paths.h>
+ #include <fcntl.h>
+ #include <time.h>
+ #include <errno.h>
+@@ -48,6 +49,10 @@
+
+ #ifndef _PATH_BTMP
+ # define _PATH_BTMP "/var/log/btmp"
++#endif
++
++#ifndef __GLIBC__
++#define logwtmp(args...)
+ #endif
+
+ /* XXX - time before ignoring lock. Is 1 sec enough? */