mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-26 00:55:14 +00:00
- fix build with utmpx
Submitted by: Ed Schouten
This commit is contained in:
parent
f13f3765bc
commit
61ca95f20a
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=248630
22
ftp/vsftpd/files/patch-sysdeputil.c
Normal file
22
ftp/vsftpd/files/patch-sysdeputil.c
Normal file
@ -0,0 +1,22 @@
|
||||
--- sysdeputil.c.orig 2009-11-12 04:16:15.000000000 +0100
|
||||
+++ sysdeputil.c 2010-01-26 22:30:10.000000000 +0100
|
||||
@@ -1213,7 +1213,9 @@
|
||||
setutxent();
|
||||
(void) pututxline(&s_utent);
|
||||
endutxent();
|
||||
+#if !defined(__FreeBSD__)
|
||||
updwtmpx(WTMPX_FILE, &s_utent);
|
||||
+#endif
|
||||
}
|
||||
|
||||
void
|
||||
@@ -1232,7 +1234,9 @@
|
||||
(void) pututxline(&s_utent);
|
||||
endutxent();
|
||||
s_utent.ut_tv.tv_sec = vsf_sysutil_get_time_sec();
|
||||
+#if !defined(__FreeBSD__)
|
||||
updwtmpx(WTMPX_FILE, &s_utent);
|
||||
+#endif
|
||||
}
|
||||
|
||||
#endif /* !VSF_SYSDEP_HAVE_UTMPX */
|
Loading…
Reference in New Issue
Block a user