[Top][All Lists]

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

Re: [Bug-gnulib] GNULib Module nanosleep Breaks CVS Build On Windows

From: Jim Meyering
Subject: Re: [Bug-gnulib] GNULib Module nanosleep Breaks CVS Build On Windows
Date: Wed, 12 May 2004 20:25:22 +0200

Hi Conrad,

"Conrad T. Pino" <address@hidden> wrote:
>> Regarding getting declarations for select into nanosleep.c for WOE,
>> the proper (POSIX) way would be to include <sys/select.h>.
>> Would that work on your system?
> Unfortunately Windows 2000 and Visual Studio C++ 6.0 don't provide
> a "select.h" header file.

Is Visual Studio C++ 6.0 an important (by some measure)
development platform?  Isn't there a more-nearly POSIX-conforming
development environment that you can use?  I hate to spend time
worrying about systems that don't even come close to providing
POSIX conformance.

In any case, I hope we can do something cleaner than including
<winsock.h>.  If I were to change nanosleep.c to do this:

# include <sys/select.h>

your system could get by with a definition like this in config.h


and then a package-supplied sys/select.h file containing the
required declarations in a directory searched by the compiler,
specified via `-I dir' or whatever the equivalent is.

That approach is more in line with the goal of keeping the
code from becoming encumbered with hacks designed solely to
accommodate non-conforming systems.


reply via email to

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