1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-02-08 12:01:56 +00:00

- fix build with utmpx

Submitted by:	Ed Schouten
This commit is contained in:
Dirk Meyer 2010-02-05 12:15:24 +00:00
parent 041a0cd936
commit 8313125fa5
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=249288
2 changed files with 35 additions and 0 deletions

View File

@ -131,4 +131,8 @@ post-install:
.endif
@${CAT} ${PKGMESSAGE}
.if ${OSVERSION} >= 900007
CONFIGURE_ARGS+= GETTY=SysV
.endif
.include <bsd.port.post.mk>

View File

@ -0,0 +1,31 @@
--- faxd/GettySysV.c++.orig 2009-12-28 20:05:40.000000000 +0100
+++ faxd/GettySysV.c++ 2010-01-26 22:44:19.000000000 +0100
@@ -49,8 +49,12 @@
#define ut_time ut_tv.tv_sec
#endif
#else
+#ifdef __FreeBSD__
+#define ut_time ut_tv.tv_sec
+#else
#define ut_time ut_xtime
#endif
+#endif
#define getutent getutxent
#define getutid getutxid
@@ -172,6 +176,7 @@
void
SysVGetty::writeWtmp(utmp* ut)
{
+#if !defined(__FreeBSD__)
// append record of login to wtmp file
#if HAS_UTMPX
updwtmpx(_PATH_WTMPX, ut);
@@ -182,6 +187,7 @@
Sys::close(fd);
}
#endif
+#endif
}
/*