[PATCH] Cygwin: signal.cc: Include <unistd.h>
Corinna Vinschen
vinschen@redhat.com
Thu May 12 08:46:33 GMT 2022
On May 12 10:22, Sebastian Huber wrote:
> On 12/05/2022 10:14, Corinna Vinschen wrote:
> > > sleep (unsigned int seconds)
> > > {
> > > struct timespec req, rem;
> > > @@ -174,7 +175,7 @@ sleep (unsigned int seconds)
> > > return 0;
> > > }
> > > -extern "C" unsigned int
> > > +int
> > > usleep (useconds_t useconds)
> > Good catch, otherwise, thank you! I'd prefer if you push just the
> > type change and keep the extern "C" as a marker for exported functions.
>
> Ok, what about the unistd.h include?
Let's keep it. It might help to uncover other issues in future.
Thx,
Corinna
More information about the Newlib
mailing list