aboutsummaryrefslogtreecommitdiff
path: root/pam_fshadow
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org.ua>2007-08-14 08:50:50 +0000
committerSergey Poznyakoff <gray@gnu.org.ua>2007-08-14 08:50:50 +0000
commit1c004f2fe64e78613bb318f469e1f4abbb71e467 (patch)
treecc6be4b97325d18ac4363921a60ad86f8763966f /pam_fshadow
parent35c5bc9e42987b1c432c233c910b552fff4dedca (diff)
downloadpam-modules-1c004f2fe64e78613bb318f469e1f4abbb71e467.tar.gz
pam-modules-1c004f2fe64e78613bb318f469e1f4abbb71e467.tar.bz2
* pam_fshadow/pam_fshadow.c: Include config.h and time.h
* pam_sql/pam_mysql.c, pam_sql/pam_pgsql.c, pam_sql/pam_sql.c: Use _pam_log for diagnostics. * pam_regex/pam_regex.c (pam_sm_authenticate): Remove unused variable. * configure.ac: New option --enable-debug * common.c (wait_debug): Bugfix * pam_log/pam_log.c: Include ctype.h (parse_priority): Change return type. * pam_fshadow/Makefile.am, pam_log/Makefile.am, pam_regex/Makefile.am, pam_sql/Makefile.am: Use CPPFLAGS in cc rules. git-svn-id: file:///svnroot/pam-modules/trunk@58 56984be4-0537-0410-a56c-fcb268c96130
Diffstat (limited to 'pam_fshadow')
-rw-r--r--pam_fshadow/Makefile.am2
-rw-r--r--pam_fshadow/pam_fshadow.c5
2 files changed, 6 insertions, 1 deletions
diff --git a/pam_fshadow/Makefile.am b/pam_fshadow/Makefile.am
index 77d9e7b..8aeea74 100644
--- a/pam_fshadow/Makefile.am
+++ b/pam_fshadow/Makefile.am
@@ -25,7 +25,7 @@ NORMAL_UNINSTALL = -rm -f $(DESTDIR)$(pamdir)/pam_fshadow.a $(DESTDIR)$(pamdir)/
pam_fshadow.lo: $(srcdir)/pam_fshadow.c
$(LIBTOOL) --mode=compile $(CC) -c -DHAVE_CONFIG_H \
- $(CFLAGS) $(AM_CFLAGS) $(AM_CPPFLAGS) $(INCLUDES) $<
+ $(CFLAGS) $(AM_CFLAGS) $(CPPFLAGS) $(AM_CPPFLAGS) $(INCLUDES) $<
pam_fshadow.la$(EXEEXT): pam_fshadow.lo
$(LIBTOOL) --mode=link $(CC) -module -export-dynamic \
diff --git a/pam_fshadow/pam_fshadow.c b/pam_fshadow/pam_fshadow.c
index 5c43fd5..18accfd 100644
--- a/pam_fshadow/pam_fshadow.c
+++ b/pam_fshadow/pam_fshadow.c
@@ -17,6 +17,10 @@
/* pam_fshadow */
+#if defined(HAVE_CONFIG_H)
+# include <config.h>
+#endif
+
#include <security/_pam_aconf.h>
#include <stdlib.h>
@@ -25,6 +29,7 @@
#include <string.h>
#include <syslog.h>
#include <stdarg.h>
+#include <time.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>

Return to:

Send suggestions and report system problems to the System administrator.