patch-modules_pam_lastlog_pam_lastlog_c 544 B

123456789101112131415161718192021
  1. --- Linux-PAM-1.1.8.orig/modules/pam_lastlog/pam_lastlog.c 2013-06-18 16:11:21.000000000 +0200
  2. +++ Linux-PAM-1.1.8/modules/pam_lastlog/pam_lastlog.c 2013-12-21 18:34:07.000000000 +0100
  3. @@ -10,6 +10,7 @@
  4. #include "config.h"
  5. +#include <paths.h>
  6. #include <fcntl.h>
  7. #include <time.h>
  8. #include <errno.h>
  9. @@ -50,6 +51,10 @@ struct lastlog {
  10. # define _PATH_BTMP "/var/log/btmp"
  11. #endif
  12. +#ifndef __GLIBC__
  13. +#define logwtmp(args...)
  14. +#endif
  15. +
  16. /* XXX - time before ignoring lock. Is 1 sec enough? */
  17. #define LASTLOG_IGNORE_LOCK_TIME 1