This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: imapd on cygwin


> Andrew DeFaria wrote:
[...]
> 
> I can find no man page for gettimeofday in Cygwin! And I can't seem to 
> even call it properly:
> 
> #include <time.h>
> #include <stdio.h>
> 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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]