[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
http://www.opengroup.org/onlinepubs/009695399/functions/select.html
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.
Bruno
- nanosleep module and mingw32, Martin Lambers, 2006/05/18
- Re: [bug-gnulib] nanosleep module and mingw32, Bruno Haible, 2006/05/18
- Re: nanosleep module and mingw32, Simon Josefsson, 2006/05/18
- Re: nanosleep module and mingw32, Jim Meyering, 2006/05/19
- Re: [bug-gnulib] Re: nanosleep module and mingw32,
Bruno Haible <=
- Re: [bug-gnulib] Re: nanosleep module and mingw32, Paul Eggert, 2006/05/19
- Re: [bug-gnulib] Re: nanosleep module and mingw32, Martin Lambers, 2006/05/21
- Re: [bug-gnulib] Re: nanosleep module and mingw32, Paul Eggert, 2006/05/22
- Re: [bug-gnulib] Re: nanosleep module and mingw32, Martin Lambers, 2006/05/22
- Re: [bug-gnulib] Re: nanosleep module and mingw32, Paul Eggert, 2006/05/23
- Re: [bug-gnulib] Re: nanosleep module and mingw32, Martin Lambers, 2006/05/23
- Re: [bug-gnulib] Re: nanosleep module and mingw32, Martin Lambers, 2006/05/23
- Re: [bug-gnulib] Re: nanosleep module and mingw32, Martin Lambers, 2006/05/27