This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [RFC] Missing sleep function for mingw hosts
- From: Eli Zaretskii <eliz at gnu dot org>
- To: "Pierre Muller" <pierre dot muller at ics-cnrs dot unistra dot fr>
- Cc: gdb-patches at sourceware dot org
- Date: Tue, 29 Mar 2011 08:36:35 -0400
- Subject: Re: [RFC] Missing sleep function for mingw hosts
- References: <004701cbede4$0ee18c20$2ca4a460$@muller@ics-cnrs.unistra.fr>
- Reply-to: Eli Zaretskii <eliz at gnu dot org>
> From: "Pierre Muller" <pierre.muller@ics-cnrs.unistra.fr>
> Date: Tue, 29 Mar 2011 09:36:46 +0200
>
> mingw does not have a sleep function in its library.
> This prevents currently successful compilation of
> mingw64 with --enable-targets=all option.
You say "mingw64" -- does that mean it does compile with mingw32? If
so, how come it fails with the 64-bit build?
> I found that there is a substitute for sleep in gnulib:
> http://git.savannah.gnu.org/gitweb/?p=gnulib.git;a=blob;f=lib/sleep.c;hb=d60
> f3b0c6b0f93a601acd1cfd3923f94ca05abb0
>
> What is the rule to add new parts into gnulib subdirectory?
> Would inclusion of gnulib sleep.c source code
> be possible to fix the above problem?
I'd rather we had a replacement in win32-nat.c, instead of importing
gobs of gnulib stuff needed to provide such a trivial replacement.
gnulib is GPL, so we can simply copy the code into our sources.