libpam uses sys/time.h to pick up ctime, but it's actually defined
in time.h according to POSIX and the ctime manpage.
    If someone could help review and commit this patch, it would be
much appreciated. This is part of a much larger change to fix
namespace pollution with time.h in sys/time.h.
Thanks,
-Garrett
Index: lib/libpam/modules/pam_unix/pam_unix.c
===================================================================
--- lib/libpam/modules/pam_unix/pam_unix.c	(revision 215333)
+++ lib/libpam/modules/pam_unix/pam_unix.c	(working copy)
@@ -39,7 +39,6 @@
 
 #include <sys/param.h>
 #include <sys/socket.h>
-#include <sys/time.h>
 #include <netinet/in.h>
 #include <arpa/inet.h>
 
@@ -50,6 +49,7 @@
 #include <string.h>
 #include <stdio.h>
 #include <syslog.h>
+#include <time.h>
 #include <unistd.h>
 
 #include <libutil.h>
_______________________________________________
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "freebsd-hackers-unsubscr...@freebsd.org"

Reply via email to