Skip to content

Commit

Permalink
Check if sigabbrev np is there
Browse files Browse the repository at this point in the history
Signed-off-by: Akshita Mavurapu <[email protected]>
  • Loading branch information
Akshita Mavurapu committed Dec 3, 2024
1 parent c65ef28 commit 4798565
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/signal_hook.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 = "<unknown>";
Expand Down

0 comments on commit 4798565

Please sign in to comment.