1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-29 10:18:30 +00:00

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.
This commit is contained in:
Jacques Vidrine 2001-08-16 02:00:28 +00:00
parent 898e952ce9
commit 3f20731536
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=46301

View File

@ -0,0 +1,12 @@
--- 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 ()
{