1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-28 10:08:24 +00:00

Fix two other places where _?UTMP_FILE is not defined.

Noticed by:	bento.freebsd.org
This commit is contained in:
Jacques Vidrine 2001-08-21 14:05:37 +00:00
parent 36ece1d5a0
commit f5aef6a673
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=46585
2 changed files with 24 additions and 0 deletions

View File

@ -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;

View File

@ -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