[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: nanosleep module and mingw32
From: |
Simon Josefsson |
Subject: |
Re: nanosleep module and mingw32 |
Date: |
Thu, 18 May 2006 22:54:40 +0200 |
User-agent: |
Gnus/5.110006 (No Gnus v0.6) Emacs/22.0.50 (gnu/linux) |
Martin Lambers <address@hidden> writes:
> Hi,
>
> I get the following error when using the nanosleep module and
> crosscompiling to W32 with the Debian mingw32 package and
> ./configure --host=i586-mingw32msvc :
>
> ../gnulib/libgnu.a(nanosleep.o):nanosleep.c:(.text+0x64): undefined reference
> to `_select'
>
> The attached patch fixes this for me.
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.
> --- gnulib/lib/nanosleep.c.orig 2005-09-23 06:15:13.000000000 +0200
> +++ gnulib/lib/nanosleep.c 2006-05-18 21:45:44.000000000 +0200
> @@ -25,6 +25,10 @@
> prototype for rpl_nanosleep. (they'd conflict e.g., on alpha-dec-osf3.2)
> */
> #undef nanosleep
>
> +#ifdef _WIN32
> +#include <winsock2.h>
> +#endif
> +
> #include <stdbool.h>
> #include <stdio.h>
> #include <sys/types.h>
- 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 <=
- Re: nanosleep module and mingw32, Jim Meyering, 2006/05/19
- Re: [bug-gnulib] Re: nanosleep module and mingw32, Bruno Haible, 2006/05/19
- 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