Subject: Re: pkg/33494: net/vsftpd doesn't build on Solaris
To: None <pkg-manager@netbsd.org, gnats-admin@netbsd.org,>
From: Stefan Pfetzing <dreamind@dreamind.de>
List: pkgsrc-bugs
Date: 05/16/2006 21:00:05
The following reply was made to PR pkg/33494; it has been noted by GNATS.
From: Stefan Pfetzing <dreamind@dreamind.de>
To: gnats-bugs@NetBSD.org
Cc:
Subject: Re: pkg/33494: net/vsftpd doesn't build on Solaris
Date: Tue, 16 May 2006 22:58:08 +0200
--Apple-Mail-4--145319808
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
charset=ISO-8859-1;
format=flowed
Hi J=F6rg,
Am 16.05.2006 um 22:05 schrieb joerg@britannica.bec.de:
> You might want to use altzone if daylight !=3D 0.
Ok, I modified the patch accordingly.
--Apple-Mail-4--145319808
Content-Transfer-Encoding: 7bit
Content-Type: application/octet-stream;
x-unix-mode=0644;
name="patch-ag"
Content-Disposition: attachment;
filename=patch-ag
--- sysutil.c.orig 2006-01-09 18:05:18.000000000 +0100
+++ sysutil.c 2006-05-16 21:02:10.302380655 +0200
@@ -2478,7 +2478,14 @@
tzset();
the_time = time(NULL);
p_tm = localtime(&the_time);
+#if defined (__SVR4) && defined (__sun)
+ if (daylight != 0)
+ s_timezone = altzone;
+ else
+ s_timezone = timezone;
+#else
s_timezone = -p_tm->tm_gmtoff;
+#endif
}
const char*
--Apple-Mail-4--145319808
Content-Transfer-Encoding: 7bit
Content-Type: text/plain;
charset=US-ASCII;
format=flowed
bye
Stefan
--
http://www.dreamind.de/
Oroborus and Debian GNU/Linux Developer.
--Apple-Mail-4--145319808--