Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Date: Wed, 3 Apr 2002 10:30:42 +0200 (MEST) From: "S. L." To: Andrew DeFaria Cc: cygwin AT cygwin DOT com MIME-Version: 1.0 References: <3CAAB156 DOT 2090707 AT DeFaria DOT com> Subject: Re: imapd on cygwin X-Priority: 3 (Normal) X-Authenticated-Sender: #0006551723 AT gmx DOT net X-Authenticated-IP: [194.102.244.61] Message-ID: <23473.1017822642@www20.rz2.gmx.net> X-Flags: 0001 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit > Andrew DeFaria wrote: [...] > > I can find no man page for gettimeofday in Cygwin! And I can't seem to > even call it properly: > > #include > #include > int main (void) { > struct timezone d; > printf ("Calling gettimeofday\n"); > gettimeofday (NULL, &d); > printf ("Returned from gettimeofday\n"); > } > > $ gcc foo.c > foo.c: In function `main': > foo.c:4: storage size of `d' isn't known > > So how the hell did it get compiled into imapd this way?!? And how does > on call gettimeofday in Cygwin? > > Finally I tried: [...] I don't know if it usefull here, but as Gerrit P. Haase mentioned in http://sources.redhat.com/ml/cygwin/2001-09/msg00008.html , for using timezone you must execute a " tzset(); " call before the first line such variable (timezone) appears. SLao -- GMX - Die Kommunikationsplattform im Internet. http://www.gmx.net -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/