aboutsummaryrefslogtreecommitdiff
path: root/newlib
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2015-06-20 19:05:51 +0200
committerCorinna Vinschen <corinna@vinschen.de>2015-06-20 19:05:51 +0200
commit6442e914d9213a6d4fe9d58e9a33bc407e18a2aa (patch)
treefeca1e1916c27f50ea2c34f198bf7284524b702f /newlib
parent74d272cc0272d89b9735d9a549102170fab37333 (diff)
downloadnewlib-6442e914d9213a6d4fe9d58e9a33bc407e18a2aa.zip
newlib-6442e914d9213a6d4fe9d58e9a33bc407e18a2aa.tar.gz
newlib-6442e914d9213a6d4fe9d58e9a33bc407e18a2aa.tar.bz2
Use MINSIGSTKSZ and SIGSTKSZ from newlib for Cygwin as well
* libc/include/sys/signal.h: Move altstack macros completely outside of rtems block. * include/cygwin/signal.h: Remove definitions of MINSIGSTKSZ and SIGSTKSZ here. Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
Diffstat (limited to 'newlib')
-rw-r--r--newlib/libc/include/sys/signal.h28
1 files changed, 14 insertions, 14 deletions
diff --git a/newlib/libc/include/sys/signal.h b/newlib/libc/include/sys/signal.h
index f2087fe..6283e89 100644
--- a/newlib/libc/include/sys/signal.h
+++ b/newlib/libc/include/sys/signal.h
@@ -108,20 +108,6 @@ struct sigaction {
#define sa_sigaction _signal_handlers._sigaction
#endif
-#if __BSD_VISIBLE || __XSI_VISIBLE || __POSIX_VISIBLE >= 200112
-/*
- * Minimum and default signal stack constants. Allow for target overrides
- * from <sys/features.h>.
- */
-#ifndef MINSIGSTKSZ
-#define MINSIGSTKSZ 2048
-#endif
-#ifndef SIGSTKSZ
-#define SIGSTKSZ 8192
-#endif
-
-#endif
-
#elif defined(__CYGWIN__)
#include <cygwin/signal.h>
#else
@@ -137,12 +123,26 @@ struct sigaction
};
#endif /* defined(__rtems__) */
+#if __BSD_VISIBLE || __XSI_VISIBLE || __POSIX_VISIBLE >= 200112
+/*
+ * Minimum and default signal stack constants. Allow for target overrides
+ * from <sys/features.h>.
+ */
+#ifndef MINSIGSTKSZ
+#define MINSIGSTKSZ 2048
+#endif
+#ifndef SIGSTKSZ
+#define SIGSTKSZ 8192
+#endif
+
/*
* Possible values for ss_flags in stack_t below.
*/
#define SS_ONSTACK 0x1
#define SS_DISABLE 0x2
+#endif
+
/*
* Structure used in sigaltstack call.
*/