pkgsrc/security/srp_client/patches/patch-aa

35 lines
735 B
Text

$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 <sys/param.h>
+#endif
#include <sys/stat.h>
#include <stdio.h>
#include <pwd.h>
@@ -45,6 +48,8 @@
#if HAVE_LASTLOG_H
#include <lastlog.h>
+#elif (defined(BSD) && BSD >= 199306)
+#include <utmp.h>
#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 = "";