From f9b36280101e94f6a6a6066f8342a13416cdea18 Mon Sep 17 00:00:00 2001 From: Corinna Vinschen Date: Fri, 26 Oct 2012 09:23:46 +0000 Subject: [PATCH] * libc/include/sys/signal.h (sigset_t): Don't define when building for Cygwin. --- newlib/ChangeLog | 5 +++++ newlib/libc/include/sys/signal.h | 3 +++ 2 files changed, 8 insertions(+) diff --git a/newlib/ChangeLog b/newlib/ChangeLog index 8f8ed212e..1c44191d0 100644 --- a/newlib/ChangeLog +++ b/newlib/ChangeLog @@ -1,3 +1,8 @@ +2012-10-26 Corinna Vinschen + + * libc/include/sys/signal.h (sigset_t): Don't define when building + for Cygwin. + 2012-10-24 Jeff Johnston * configure.in: Comment out the --enable-newlib-fp-hw option diff --git a/newlib/libc/include/sys/signal.h b/newlib/libc/include/sys/signal.h index 4e3be1ccf..3d6ba0831 100644 --- a/newlib/libc/include/sys/signal.h +++ b/newlib/libc/include/sys/signal.h @@ -12,7 +12,10 @@ extern "C" { /* #ifndef __STRICT_ANSI__*/ +/* Cygwin defines it's own sigset_t in include/cygwin/signal.h */ +#ifndef __CYGWIN__ typedef unsigned long sigset_t; +#endif #if defined(__rtems__)