summaryrefslogtreecommitdiff
path: root/security/srp_client/patches/patch-aa
diff options
context:
space:
mode:
Diffstat (limited to 'security/srp_client/patches/patch-aa')
-rw-r--r--security/srp_client/patches/patch-aa35
1 files changed, 35 insertions, 0 deletions
diff --git a/security/srp_client/patches/patch-aa b/security/srp_client/patches/patch-aa
new file mode 100644
index 00000000000..6c614abda31
--- /dev/null
+++ b/security/srp_client/patches/patch-aa
@@ -0,0 +1,35 @@
+$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 = "";