delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2015/08/18/08:30:08

X-Recipient: archive-cygwin AT delorie DOT com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:mime-version:in-reply-to:references:date
:message-id:subject:from:to:content-type; q=dns; s=default; b=ep
Z4Uh9uYpfKQ5fSsgieDry2tlgEHmDVmS1SF3J3h8ZPKVGTJr01gYqYipne/2Y71x
jPQxthctUPru04cf6SWE3Ckzii1F44uiLQLHkZK8+MJeaqh9Nqars7DQaYDP6BVP
Qgo6jeHNRTbSYHNEWtxKOWIVrSOxk/HJgT8hkLtNM=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:mime-version:in-reply-to:references:date
:message-id:subject:from:to:content-type; s=default; bh=TCrRMuoC
GcLVWEgYWz02A0PtEPA=; b=AHCKpbvJLwuOsm4AIR8k2/sxPmGxMu8su1/4AjBR
kppmXLACDk7JKOc2F7bX8Rl/axtaqJHXnCgXKtnJxbGuVhZ5bS4F100RdHTnFjDt
7474aUFRNyfd4CmAKWGnjFjk+jtfy9z1TRCDJ9sm91WFLC4G0cpCP3v8wEq+oYSs
jso=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=-2.1 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2
X-HELO: mail-qg0-f48.google.com
MIME-Version: 1.0
X-Received: by 10.140.165.5 with SMTP id l5mr12705452qhl.85.1439900990378; Tue, 18 Aug 2015 05:29:50 -0700 (PDT)
In-Reply-To: <20150818091051.GM17917@calimero.vinschen.de>
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>
Date: Tue, 18 Aug 2015 14:29:50 +0200
Message-ID: <CAKw7uVj3Nak7iBDu1cQ=XgeceDMvuhsJ7tPVgc8baJHgrUMpBg@mail.gmail.com>
Subject: Re: [PATCH] sys/signal.h: include sys/ucontext.h on Cygwin per POSIX.1-2008
From: =?UTF-8?Q?V=C3=A1clav_Haisman?= <vhaisman AT gmail DOT com>
To: cygwin AT cygwin DOT com
X-IsSubscribed: yes

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 AT redhat DOT 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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019