freebsd-ports/security/srp/files/patch-base::libmisc::utmp.c
Jacques Vidrine f5aef6a673 Fix two other places where _?UTMP_FILE is not defined.
Noticed by:	bento.freebsd.org
2001-08-21 14:05:37 +00:00

12 lines
276 B
C

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