bug-cvs
[Top][All Lists]
Advanced

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

Windows Build Killer: lib/gettime.c


From: Conrad T. Pino
Subject: Windows Build Killer: lib/gettime.c
Date: Tue, 11 May 2004 13:27:48 -0700

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





reply via email to

[Prev in Thread] Current Thread [Next in Thread]