$NetBSD: patch-aa,v 1.1.1.1 1999/06/18 19:18:18 jlam Exp $ --- base/src/login.c.orig Fri Dec 11 15:14:01 1998 +++ base/src/login.c Fri Jun 18 06:56:49 1999 @@ -34,6 +34,9 @@ #include "prototypes.h" #include "defines.h" +#if defined(unix) +#include +#endif #include #include #include @@ -45,6 +48,8 @@ #if HAVE_LASTLOG_H #include +#elif (defined(BSD) && BSD >= 199306) +#include #else #include "lastlog_.h" #endif @@ -75,7 +80,11 @@ * Needed for MkLinux DR1/2/2.1 - J. */ #ifndef LASTLOG_FILE +#if (defined(BSD) && BSD >= 199306) +#define LASTLOG_FILE _PATH_LASTLOG +#else #define LASTLOG_FILE "/var/log/lastlog" +#endif #endif char *host = "";