[Top][All Lists]

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

Re: [bug-gnulib] Re: nanosleep module and mingw32

From: Bruno Haible
Subject: Re: [bug-gnulib] Re: nanosleep module and mingw32
Date: Fri, 19 May 2006 14:50:16 +0200
User-agent: KMail/1.5

Simon Josefsson wrote:
> Wouldn't this be a good situation to have nanosleep depend on the
> unistd module, and make the replacement unistd.h include winsock2.h on
> mingw32 platforms?  After all, nanosleep.c include unistd.h, and
> unistd.h define select on some platforms.

But <unistd.h> is not supposed to declare select() in POSIX: see
POSIX says <sys/select.h> should declare it. <unistd.h> is unrelated.

Since gnulib's policy is to let the programs write code in POSIX syntax, I vote
for a module that creates a <sys/select.h> file in the build directory. On
most platforms it would need to include <sys/time.h> too; on Woe32 it would use
<winsock.h>. full-header-path.m4 comes in handy here.


reply via email to

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