From: Christopher Wellons <wellons@nullprogram.com>
To: cygwin@cygwin.com
Subject: Error from signal.h when _POSIX_C_SOURCE == 1
Date: Wed, 12 Jul 2017 00:01:00 -0000 [thread overview]
Message-ID: <20170712000107.GJ17540@nullprogram.com> (raw)
A two-line source file demonstrates this bug:
#define _POSIX_C_SOURCE 1
#include <signal.h>
Then when compiled:
$ gcc -c tmp.c
In file included from /usr/include/sys/signal.h:22:0,
from /usr/include/signal.h:6,
from tmp.c:2:
/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.
--
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
next reply other threads:[~2017-07-12 0:01 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-07-12 0:01 Christopher Wellons [this message]
2017-07-12 0:05 ` Yaakov Selkowitz
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20170712000107.GJ17540@nullprogram.com \
--to=wellons@nullprogram.com \
--cc=cygwin@cygwin.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).