summaryrefslogtreecommitdiffstats
path: root/winsup
diff options
context:
space:
mode:
authorYaakov Selkowitz <yselkowi@redhat.com>2017-07-04 18:10:02 -0500
committerYaakov Selkowitz <yselkowi@redhat.com>2017-07-04 19:22:23 -0500
commit8a508f301cb9fb7e11f7cc2e3be7ffd42e64c25f (patch)
treec7566f71e2eab18b3af3311e9573783f7b58055a /winsup
parent56c1cfa0097ea30efb58c1f39815f9c5dc0406c5 (diff)
downloadcygnal-8a508f301cb9fb7e11f7cc2e3be7ffd42e64c25f.tar.gz
cygnal-8a508f301cb9fb7e11f7cc2e3be7ffd42e64c25f.tar.bz2
cygnal-8a508f301cb9fb7e11f7cc2e3be7ffd42e64c25f.zip
Cygwin: fix signal.h with _POSIX_C_SOURCE=1
struct sigaction is POSIX.1-1990 but siginfo_t, which is used by its sa_sigaction member, is POSIX.1b-1993. Therefore it needs to be guarded as well, and as part of a union, the struct size is protected. Signed-off-by: Yaakov Selkowitz <yselkowi@redhat.com>
Diffstat (limited to 'winsup')
-rw-r--r--winsup/cygwin/include/cygwin/signal.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/winsup/cygwin/include/cygwin/signal.h b/winsup/cygwin/include/cygwin/signal.h
index 700d45c13..e73874c62 100644
--- a/winsup/cygwin/include/cygwin/signal.h
+++ b/winsup/cygwin/include/cygwin/signal.h
@@ -325,7 +325,9 @@ struct sigaction
__extension__ union
{
_sig_func_ptr sa_handler; /* SIG_DFL, SIG_IGN, or pointer to a function */
+#if __POSIX_VISIBLE >= 199309
void (*sa_sigaction) ( int, siginfo_t *, void * );
+#endif
};
sigset_t sa_mask;
int sa_flags;