Re: [PATCH] Cygwin: signal.cc: Include <unistd.h>

Sebastian Huber <[email protected]>
Newsgroups gmane.comp.lib.newlib
Message-ID <[email protected]>
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?

-- 
embedded brains GmbH
Herr Sebastian HUBER
Dornierstr. 4
82178 Puchheim
Germany
email: [email protected]
phone: +49-89-18 94 741 - 16
fax:   +49-89-18 94 741 - 08

Registergericht: Amtsgericht München
Registernummer: HRB 157899
Vertretungsberechtigte Geschäftsführer: Peter Rasmussen, Thomas Dörfler
Unsere Datenschutzerklärung finden Sie hier:
https://embedded-brains.de/datenschutzerklaerung/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.