Re: [RFC] Missing sleep function for mingw hosts

Matt Rice
2011-03-29T20:22:03Z

On Tue, Mar 29, 2011 at 1:01 PM, Eli Zaretskii <eliz@gnu.org> wrote:
>> From: Pedro Alves <pedro@codesourcery.com>
>> Date: Tue, 29 Mar 2011 15:23:46 +0100
>> Cc: "Pierre Muller" <pierre.muller@ics-cnrs.unistra.fr>,
>>  "'Eli Zaretskii'" <eliz@gnu.org>
>>
>> > > 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.
>>
>> gnulib has a mechanism (which we are already using) where
>> we just import the modules we need.  We don't import the whole
>> thing.
>
> I know, but "just the modules we need" are typically huge relative to
> small problems they solve, this one in particular.
>
> Anyway, I'm glad that a much more elegant solution is already
> available in GDB, in the form of gdb_usleep.
>

fwiw, looking at the output of:

https://gitorious.org/gnulib-module-graph/gnulib-module-graph

importing sleep brings in 2 dependencies which we do not already have,
unistd, and verify (in addition to the sleep module).