summaryrefslogtreecommitdiff
path: root/ftp/proftpd/files/patch-src-wtmp.c
diff options
context:
space:
mode:
Diffstat (limited to 'ftp/proftpd/files/patch-src-wtmp.c')
-rw-r--r--ftp/proftpd/files/patch-src-wtmp.c22
1 files changed, 20 insertions, 2 deletions
diff --git a/ftp/proftpd/files/patch-src-wtmp.c b/ftp/proftpd/files/patch-src-wtmp.c
index afd717708886..43c542ea179a 100644
--- a/ftp/proftpd/files/patch-src-wtmp.c
+++ b/ftp/proftpd/files/patch-src-wtmp.c
@@ -1,5 +1,23 @@
---- src/wtmp.c.orig 2010-07-05 09:52:50.147213835 +0200
-+++ src/wtmp.c 2010-07-05 09:53:25.075513542 +0200
+--- src/wtmp.c.orig 2011-05-23 23:22:24.000000000 +0200
++++ src/wtmp.c 2012-07-17 16:19:34.188505949 +0200
+@@ -42,7 +42,7 @@
+ !(defined(LINUX) || defined(__hpux) || defined (_AIX))
+ /* This "auxilliary" utmp doesn't exist under linux. */
+
+-#if defined(__sparcv9) && !defined(__NetBSD__)
++#if defined(__sparcv9) && !defined(__NetBSD__) && !defined(__FreeBSD__)
+ struct futmpx utx;
+ time_t t;
+
+@@ -97,7 +97,7 @@
+ #else /* SVR4 */
+ utx.ut_syslen = strlen(utx.ut_host)+1;
+
+-# ifdef __sparcv9
++# ifdef __sparcv9 && !defined(__FreeBSD__)
+ time(&t);
+ utx.ut_tv.tv_sec = (time32_t)t;
+ # else
@@ -126,7 +126,9 @@
}