diff options
Diffstat (limited to 'modules/pam_lastlog')
-rw-r--r-- | modules/pam_lastlog/Makefile | 4 | ||||
-rw-r--r-- | modules/pam_lastlog/pam_lastlog.c | 1 |
2 files changed, 4 insertions, 1 deletions
diff --git a/modules/pam_lastlog/Makefile b/modules/pam_lastlog/Makefile index 31035a99..333ecd93 100644 --- a/modules/pam_lastlog/Makefile +++ b/modules/pam_lastlog/Makefile @@ -10,6 +10,10 @@ include ../../Make.Rules +ifeq ($(HAVE_LIBUTIL),yes) + MODULE_SIMPLE_EXTRALIBS += -lutil +endif + TITLE=pam_lastlog include ../Simple.Rules diff --git a/modules/pam_lastlog/pam_lastlog.c b/modules/pam_lastlog/pam_lastlog.c index 05c3c083..15f83c83 100644 --- a/modules/pam_lastlog/pam_lastlog.c +++ b/modules/pam_lastlog/pam_lastlog.c @@ -25,7 +25,6 @@ #include <stdio.h> #include <string.h> #include <sys/types.h> -#define __USE_BSD #include <syslog.h> #include <unistd.h> |