[PATCH] libc: Fix compilation for new sig2str/str2sig implementation
Corinna Vinschen
vinschen@redhat.com
Mon Aug 2 14:47:40 GMT 2021
On Aug 2 16:00, Christoph Muellner wrote:
> A recent patch introduced new code for sig2str/str2sig.
> This code does not properly exclude code that requires
> SIGRTMIN/SIGRTMAX to be defined and triggers the following
> compile error:
>
> newlib/libc/signal/sig2str.c:199:8: error: 'SIGRTMIN' undeclared
> newlib/libc/signal/sig2str.c:200:29: error: 'SIGRTMAX' undeclared
>
> Let's add the missing guards.
>
> Fixes: 2b50ec0cd205 ("libc: Fix compilation for new sig2str/str2sig implementation")
>
> Signed-off-by: Christoph Muellner <cmuellner@gcc.gnu.org>
> ---
> newlib/libc/signal/sig2str.c | 7 ++++++-
> 1 file changed, 6 insertions(+), 1 deletion(-)
Pushed.
Thanks,
Corinna
More information about the Newlib
mailing list