aboutsummaryrefslogtreecommitdiff
path: root/ftp
diff options
context:
space:
mode:
authorDirk Meyer <dinoex@FreeBSD.org>2010-01-26 21:31:51 +0000
committerDirk Meyer <dinoex@FreeBSD.org>2010-01-26 21:31:51 +0000
commit61ca95f20aa100c756d97be710d7ec71387ab512 (patch)
tree40aa932c20d0382f2bd88067baae6bd04e9cac65 /ftp
parentf13f3765bcb59e689c3efd364ea3a3a23449d645 (diff)
downloadports-61ca95f20aa100c756d97be710d7ec71387ab512.tar.gz
ports-61ca95f20aa100c756d97be710d7ec71387ab512.zip
- fix build with utmpx
Submitted by: Ed Schouten
Notes
Notes: svn path=/head/; revision=248630
Diffstat (limited to 'ftp')
-rw-r--r--ftp/vsftpd/files/patch-sysdeputil.c22
1 files changed, 22 insertions, 0 deletions
diff --git a/ftp/vsftpd/files/patch-sysdeputil.c b/ftp/vsftpd/files/patch-sysdeputil.c
new file mode 100644
index 000000000000..77124fec1d21
--- /dev/null
+++ b/ftp/vsftpd/files/patch-sysdeputil.c
@@ -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 */