pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: pkg/33494: net/vsftpd doesn't build on Solaris



The following reply was made to PR pkg/33494; it has been noted by GNATS.

From: joerg%britannica.bec.de@localhost
To: gnats-bugs%NetBSD.org@localhost
Cc: 
Subject: Re: pkg/33494: net/vsftpd doesn't build on Solaris
Date: Tue, 16 May 2006 20:49:39 +0200

 On Tue, May 16, 2006 at 06:45:02PM +0000, Stefan Pfetzing wrote:
 >  +--- sysutil.c.orig 2006-05-16 14:50:01.756061293 +0200
 >  ++++ sysutil.c      2006-05-16 15:29:33.564923203 +0200
 >  +@@ -2475,10 +2475,17 @@
 >  + {
 >  +   time_t the_time = 0;
 >  +   struct tm* p_tm;
 >  ++#if defined (__SVR4) && defined (__sun) 
 >  ++  extern time_t timezone;
 >  ++#endif
 >  +   tzset();
 >  +   the_time = time(NULL);
 >  +   p_tm = localtime(&the_time);
 >  ++#if defined (__SVR4) && defined (__sun) 
 >  ++  s_timezone = timezone;
 >  ++#else
 >  +   s_timezone = -p_tm->tm_gmtoff;
 >  ++#endif
 >  + }
 >  + 
 >  + const char*
 
 Does including <time.h> provide the declaration of timezone? That's the
 last nit :-)
 
 Joerg
 



Home | Main Index | Thread Index | Old Index