From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 58527 invoked by alias); 18 Aug 2015 12:29:54 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 58518 invoked by uid 89); 18 Aug 2015 12:29:53 -0000 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 Received: from mail-qg0-f48.google.com (HELO mail-qg0-f48.google.com) (209.85.192.48) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-GCM-SHA256 encrypted) ESMTPS; Tue, 18 Aug 2015 12:29:52 +0000 Received: by qgdd90 with SMTP id d90so115192431qgd.3 for ; Tue, 18 Aug 2015 05:29:50 -0700 (PDT) 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) Received: by 10.140.25.182 with HTTP; Tue, 18 Aug 2015 05:29:50 -0700 (PDT) In-Reply-To: <20150818091051.GM17917@calimero.vinschen.de> References: <20150817121015.GF18305@calimero.vinschen.de> <1439865979-12361-1-git-send-email-yselkowi@redhat.com> <20150818091051.GM17917@calimero.vinschen.de> Date: Tue, 18 Aug 2015 12:29:00 -0000 Message-ID: Subject: Re: [PATCH] sys/signal.h: include sys/ucontext.h on Cygwin per POSIX.1-2008 From: =?UTF-8?Q?V=C3=A1clav_Haisman?= To: cygwin@cygwin.com Content-Type: text/plain; charset=UTF-8 X-IsSubscribed: yes X-SW-Source: 2015-08/txt/msg00304.txt.bz2 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 >> if compiling for POSIX.1-2008. >> >> Signed-off-by: Yaakov Selkowitz >> --- >> 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 >> +#endif >> +#endif >> + >> #ifndef _SIGNAL_H_ >> /* Some applications take advantage of the fact that >> * and 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