This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: Error from signal.h when _POSIX_C_SOURCE == 1
- From: Yaakov Selkowitz <yselkowitz at cygwin dot com>
- To: cygwin at cygwin dot com
- Date: Tue, 11 Jul 2017 19:05:10 -0500
- Subject: Re: Error from signal.h when _POSIX_C_SOURCE == 1
- Authentication-results: sourceware.org; auth=none
- Authentication-results: ext-mx08.extmail.prod.ext.phx2.redhat.com; dmarc=none (p=none dis=none) header.from=cygwin.com
- Authentication-results: ext-mx08.extmail.prod.ext.phx2.redhat.com; spf=none smtp.mailfrom=yselkowitz at cygwin dot com
- Dkim-filter: OpenDKIM Filter v2.11.0 mx1.redhat.com BE657C0587F2
- Dmarc-filter: OpenDMARC Filter v1.3.2 mx1.redhat.com BE657C0587F2
- References: <20170712000107.GJ17540@nullprogram.com>
On 2017-07-11 19:01, Christopher Wellons wrote:
/usr/include/cygwin/signal.h:328:34: error: unknown type name
‘siginfo_t’
void (*sa_sigaction) ( int, siginfo_t *, void * );
^
Since _POSIX_C_SOURCE < 199309L, siginfo_t isn't defined. However,
cygwin/signal.h erroneously uses this type anyway when defining struct
sigaction. The sa_sigaction field in struct sigaction must also be
guarded by the same feature test macro.
Already fixed in git:
https://sourceware.org/git/?p=newlib-cygwin.git;a=commitdiff;h=8a508f301cb9fb7e11f7cc2e3be7ffd42e64c25f
--
Yaakov
--
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