aboutsummaryrefslogtreecommitdiffstats
path: root/security/srp/files
diff options
context:
space:
mode:
authornectar <nectar@FreeBSD.org>2001-08-21 22:05:37 +0800
committernectar <nectar@FreeBSD.org>2001-08-21 22:05:37 +0800
commit3a7c2cb27e95ccc4a9abfa801740251c58b20346 (patch)
tree15d260658afb2183844d9d3d343248b83245ba59 /security/srp/files
parent58e69f97b73d006ebb3f8985a860cc2232e56929 (diff)
downloadfreebsd-ports-gnome-3a7c2cb27e95ccc4a9abfa801740251c58b20346.tar.gz
freebsd-ports-gnome-3a7c2cb27e95ccc4a9abfa801740251c58b20346.tar.zst
freebsd-ports-gnome-3a7c2cb27e95ccc4a9abfa801740251c58b20346.zip
Fix two other places where _?UTMP_FILE is not defined.
Noticed by: bento.freebsd.org
Diffstat (limited to 'security/srp/files')
-rw-r--r--security/srp/files/patch-base::libmisc::utmp.c12
-rw-r--r--security/srp/files/patch-telnet::telnetd::sys_term.c12
2 files changed, 24 insertions, 0 deletions
diff --git a/security/srp/files/patch-base::libmisc::utmp.c b/security/srp/files/patch-base::libmisc::utmp.c
new file mode 100644
index 000000000000..aa3c3994ff05
--- /dev/null
+++ b/security/srp/files/patch-base::libmisc::utmp.c
@@ -0,0 +1,12 @@
+--- base/libmisc/utmp.c.orig Tue Aug 21 09:00:37 2001
++++ base/libmisc/utmp.c Tue Aug 21 09:01:33 2001
+@@ -371,6 +371,9 @@
+ int found = 0;
+ off_t pos;
+
++#if defined(__FreeBSD__)
++#define _UTMP_FILE _PATH_UTMP
++#endif
+ if ((fd = open(_UTMP_FILE, O_RDWR)) < 0)
+ return;
+
diff --git a/security/srp/files/patch-telnet::telnetd::sys_term.c b/security/srp/files/patch-telnet::telnetd::sys_term.c
new file mode 100644
index 000000000000..3c83e23f68c9
--- /dev/null
+++ b/security/srp/files/patch-telnet::telnetd::sys_term.c
@@ -0,0 +1,12 @@
+--- telnet/telnetd/sys_term.c.orig Tue Aug 21 09:02:37 2001
++++ telnet/telnetd/sys_term.c Tue Aug 21 09:03:33 2001
+@@ -111,6 +111,9 @@
+ # else
+ char wtmpf[] = "/usr/adm/wtmp";
+ # endif
++#if defined(__FreeBSD__)
++#define UTMP_FILE _PATH_UTMP
++#endif
+ # ifdef UTMP_FILE
+ char utmpf[] = UTMP_FILE;
+ # else