[Top][All Lists]

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

Windows Build Killer: lib/nanosleep.c

From: Conrad T. Pino
Subject: Windows Build Killer: lib/nanosleep.c
Date: Tue, 11 May 2004 14:07:54 -0700

Hi All,

File "lib/nanosleep.c" is a problem for these reasons:

1. defines function "my_usleep" which invokes function
"select" & VC6 has an implementation found by including
"winsock.h" which is NOT portable I presume,

2. function "select" uses a "struct timeval" argument
and VC6 doesn't have a definition of it in the expected
"time.h" file,

Function "nanosleep" references can be fixed in compile
and link with a combination of

A. "#include <winsock.h>" in "lib/nanosleep.c" file,

B. "#define nanosleep rpl_nanosleep" in "config.h" file.

but I'd like some feedback before committing to this as
a potential fix.

Best regards,

Conrad Pino

Microsoft's documentation of "select" function follows:


reply via email to

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