From 47985656182e7687ca9b9c1c33bcc3e0c1e3c71d Mon Sep 17 00:00:00 2001 From: Akshita Mavurapu Date: Tue, 3 Dec 2024 15:59:21 +0000 Subject: [PATCH] Check if sigabbrev np is there Signed-off-by: Akshita Mavurapu --- api/signal_hook.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/signal_hook.h b/api/signal_hook.h index d0f644d564..4aa06983bb 100644 --- a/api/signal_hook.h +++ b/api/signal_hook.h @@ -66,7 +66,7 @@ struct BagAbortHook { #define TERM_STRING "a critical error occurred within BAG or a dependency (probably libxml or HDF5), exiting to prevent corruption or unexpected behavior\n"\ "the signal that caused this error was: SIG" -#ifdef __USE_GNU +#if defined(__USE_GNU) && defined(_GNU_SOURCE) const char* signal_abbrev = sigabbrev_np(signal); #else const char* signal_abbrev = "";