delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2015/08/17/22:46:57

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:from:to:subject:date:message-id:in-reply-to
:references; q=dns; s=default; b=oUGIWB7SzdbSgzVQI3QwDKQQATt2hiY
7hIoVcGBhInwFPutyjBQxcSehb7nlx29oL+lskEzuj9zNJm7yiaGLBS0FYp5l3aY
PaUNExC+upg6UIilLHFzAxzb607GWdN+niTtKuWdTh/eVC2+Tm1oysS70iFjMcLL
4N7yXiAbecbY=
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:from:to:subject:date:message-id:in-reply-to
:references; s=default; bh=fF/t0rra4LcCrjfPB+n/2gVMEh4=; b=CMPx7
PX2p9RIqve+SDlP/WBIHzXJBl/vY/z4xatm/VOxP+EPOI9PMrc0utAXWEU6N13T+
7xVFLQeCvRfWKCClcZ3MGzzmS2WGQpejJz//d1NKP8iHZV4f6v/RYDmfIjVM/8Qv
2y14zRS28UanX9r7+y+eY7gYk3P/t28rmszCxs=
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=0.4 required=5.0 tests=AWL,BAYES_00,KAM_LAZY_DOMAIN_SECURITY,RP_MATCHES_RCVD,SPF_HELO_PASS autolearn=no version=3.3.2
X-HELO: mx1.redhat.com
From: Yaakov Selkowitz <yselkowi AT redhat DOT com>
To: cygwin AT cygwin DOT com
Subject: [PATCH] sys/signal.h: include sys/ucontext.h on Cygwin per POSIX.1-2008
Date: Mon, 17 Aug 2015 21:46:19 -0500
Message-Id: <1439865979-12361-1-git-send-email-yselkowi@redhat.com>
In-Reply-To: <20150817121015.GF18305@calimero.vinschen.de>
References: <20150817121015 DOT GF18305 AT calimero DOT vinschen DOT de>

* 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


--
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