aboutsummaryrefslogtreecommitdiffstats
path: root/ftp
diff options
context:
space:
mode:
authordinoex <dinoex@FreeBSD.org>2010-01-27 05:31:51 +0800
committerdinoex <dinoex@FreeBSD.org>2010-01-27 05:31:51 +0800
commitd2be2bf76468228ca579b875383baf79fd0d4dc2 (patch)
tree35620cb594951ac645608efe25199764dd5ce2a7 /ftp
parent6b8d99d88869d12ea028db254a0d362939db751b (diff)
downloadfreebsd-ports-gnome-d2be2bf76468228ca579b875383baf79fd0d4dc2.tar.gz
freebsd-ports-gnome-d2be2bf76468228ca579b875383baf79fd0d4dc2.tar.zst
freebsd-ports-gnome-d2be2bf76468228ca579b875383baf79fd0d4dc2.zip
- fix build with utmpx
Submitted by: Ed Schouten
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 */