From 9f3100c9587da7b650b1c315dc814fb26c41b1d5 Mon Sep 17 00:00:00 2001 From: Yaakov Selkowitz Date: Mon, 17 Aug 2015 21:46:19 -0500 Subject: [PATCH] sys/signal.h: include sys/ucontext.h on Cygwin per POSIX.1-2008 * libc/include/sys/signal.h [__CYGWIN__]: include if compiling for POSIX.1-2008. Signed-off-by: Yaakov Selkowitz --- 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 af5a489cb..e9aba7c95 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. */