This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: [PATCH] sys/signal.h: include sys/ucontext.h on Cygwin per POSIX.1-2008
- From: VÃclav Haisman <vhaisman at gmail dot com>
- To: cygwin at cygwin dot com
- Date: Tue, 18 Aug 2015 14:29:50 +0200
- Subject: Re: [PATCH] sys/signal.h: include sys/ucontext.h on Cygwin per POSIX.1-2008
- Authentication-results: sourceware.org; auth=none
- References: <20150817121015 dot GF18305 at calimero dot vinschen dot de> <1439865979-12361-1-git-send-email-yselkowi at redhat dot com> <20150818091051 dot GM17917 at calimero dot vinschen dot de>
On 18 August 2015 at 11:10, Corinna Vinschen wrote:
> On Aug 17 21:46, Yaakov Selkowitz wrote:
>> * libc/include/sys/signal.h [__CYGWIN__]: include <sys/ucontext.h>
>> if compiling for POSIX.1-2008.
>>
>> Signed-off-by: Yaakov Selkowitz <yselkowi@redhat.com>
>> ---
>> How about this? Other places I tried didn't compile.
>>
>> newlib/libc/include/sys/signal.h | 6 ++++++
>> 1 file changed, 6 insertions(+)
>>
>> diff --git a/newlib/libc/include/sys/signal.h b/newlib/libc/include/sys/signal.h
>> index af5a489..e9aba7c 100644
>> --- a/newlib/libc/include/sys/signal.h
>> +++ b/newlib/libc/include/sys/signal.h
>> @@ -352,6 +352,12 @@ int _EXFUN(sigqueue, (pid_t pid, int signo, const union sigval value));
>> }
>> #endif
>>
>> +#if defined(__CYGWIN__)
>> +#if __POSIX_VISIBLE >= 200809
>> +#include <sys/ucontext.h>
>> +#endif
>> +#endif
>> +
>> #ifndef _SIGNAL_H_
>> /* Some applications take advantage of the fact that <sys/signal.h>
>> * and <signal.h> are equivalent in glibc. Allow for that here. */
>> --
>> 2.4.3
>
> Looks good, I applied the patch.
Thank you both.
--
VH
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple