mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-26 00:55:14 +00:00
0f09f53d20
PR: 177377 Submitted by: Rudolf Cejka <cejkar@fit.vutbr.cz> (maintainer)
32 lines
692 B
C
32 lines
692 B
C
FreeBSD does not have header file util.h, fortunately it is not needed.
|
|
Add header file time.h for time(). Rewrite utmpx support.
|
|
|
|
--- src/logutmp.c.orig 2008-09-21 16:44:01.000000000 +0200
|
|
+++ src/logutmp.c 2008-09-21 16:44:01.000000000 +0200
|
|
@@ -71,13 +71,15 @@
|
|
#include <stdio.h>
|
|
#include <stdlib.h>
|
|
#include <string.h>
|
|
+#include <time.h>
|
|
#include <ttyent.h>
|
|
#include <unistd.h>
|
|
+#ifdef SUPPORT_UTMP
|
|
#include <utmp.h>
|
|
+#endif
|
|
#ifdef SUPPORT_UTMPX
|
|
#include <utmpx.h>
|
|
#endif
|
|
-#include <util.h>
|
|
|
|
#endif /* !defined(HAVE_TNFTPD_H) */
|
|
|
|
@@ -161,7 +163,7 @@
|
|
}
|
|
#endif /* SUPPORT_UTMP */
|
|
|
|
-#ifdef SUPPORT_UTMPX
|
|
+#if 0
|
|
/*
|
|
* special version of loginx which updates utmpx only.
|
|
*/
|