diff --git a/newlib/ChangeLog b/newlib/ChangeLog index a5a31c7b0..d6d194af0 100644 --- a/newlib/ChangeLog +++ b/newlib/ChangeLog @@ -1,3 +1,8 @@ +2015-04-01 Jon TURNEY + + * libc/include/sys/signal.h (stack_t): Make typedef generally + available. + 2015-04-01 Corinna Vinschen * libc/stdlib/wctomb_r.c (__utf8_wctomb): Fix check for handling a diff --git a/newlib/libc/include/sys/signal.h b/newlib/libc/include/sys/signal.h index 7fc30a777..6ff758ce7 100644 --- a/newlib/libc/include/sys/signal.h +++ b/newlib/libc/include/sys/signal.h @@ -125,15 +125,6 @@ struct sigaction { */ #define SS_ONSTACK 0x1 #define SS_DISABLE 0x2 - -/* - * Structure used in sigaltstack call. - */ -typedef struct sigaltstack { - void *ss_sp; /* Stack base or pointer. */ - int ss_flags; /* Flags. */ - size_t ss_size; /* Stack size. */ -} stack_t; #endif #elif defined(__CYGWIN__) @@ -151,6 +142,15 @@ struct sigaction }; #endif /* defined(__rtems__) */ +/* + * Structure used in sigaltstack call. + */ +typedef struct sigaltstack { + void *ss_sp; /* Stack base or pointer. */ + int ss_flags; /* Flags. */ + size_t ss_size; /* Stack size. */ +} stack_t; + #define SIG_SETMASK 0 /* set mask with sigprocmask() */ #define SIG_BLOCK 1 /* set of signals to block */ #define SIG_UNBLOCK 2 /* set of signals to, well, unblock */