[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Windows Build Killer: lib/gettime.c
From: |
Derek Robert Price |
Subject: |
Re: Windows Build Killer: lib/gettime.c |
Date: |
Tue, 11 May 2004 19:35:59 -0400 |
User-agent: |
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.6) Gecko/20040413 |
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Please bring this up on the bug-gnulib@gnu.org mailing list. They may
know what we're missing or be interested in updating gettime.c to run
on Windows.
Derek
Conrad T. Pino wrote:
>Hi All,
>
>File "lib/gettime.c" is a problem for these reasons:
>
>1. defines function "gettime" which invokes function
>"gettimeofday" & VC6 doesn't have an implementation,
>
>2. function "gettimeofday" uses a "struct timeval"
>argument and VC6 doesn't have a definition of it in
>the expected "time.h" file,
>
>3. adding definition for "struct timeval" to a very
>global include like "config.h" fails since VC6 does
>define "struct timeval" in "winsock.h" as follows:
>
> struct timeval {
> long tv_sec; /* seconds */
> long tv_usec; /* and microseconds */
> };
>
>which looks correct but the redefinition breaks build,
>
>4. function "rpl_gettimeofday" in "lib/gettimeofday.c"
>doesn't help since it invokes function "gettimeofday"
>& VC6 doesn't have an implementation,
>
>I'm thinking an alternate "gettime.c" implementation in
>"windows-NT" is one way out of this tangle but I'd like
>to hear other ideas first.
>
>Best regards,
>
>Conrad Pino
>
- --
*8^)
Email: derek@ximbiot.com
Get CVS support at <http://ximbiot.com>!
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFAoWNeLD1OTBfyMaQRAglpAJ9RcXPW5lQ95WmlehcDXrbRM1EpmgCgx+B1
/2A5MGgsGDn53oI5viIi4gk=
=kScv
-----END PGP SIGNATURE-----