X-Recipient: archive-cygwin@delorie.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@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.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@redhat.com>
To: cygwin@cygwin.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.GF18305@calimero.vinschen.de>

* 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


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

