freebsd-ports/security/srp/files/patch-base::lib::utent.c
Jacques Vidrine 3f20731536 Use _PATH_UTMP. Normally, the configure script attempts
to determine the location of utmp by nosing around /var/run,
/var/adm, and so on.  This fails in bento's build environment,
and it's not the right thing to do anyway.
2001-08-16 02:00:28 +00:00

13 lines
253 B
C

--- base/lib/utent.c.orig Wed Aug 15 20:50:34 2001
+++ base/lib/utent.c Wed Aug 15 20:54:08 2001
@@ -47,6 +47,9 @@
* setutent - open or rewind the utmp file
*/
+#if defined(__FreeBSD__)
+#define _UTMP_FILE _PATH_UTMP
+#endif
void
setutent ()
{