Skip to content

Commit

Permalink
Check if _POSIX_C_SOURCE is defined before using its value (JuliaLa…
Browse files Browse the repository at this point in the history
  • Loading branch information
giordano committed Apr 5, 2022
1 parent dacf9d6 commit 6774185
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/signals-unix.c
Original file line number Diff line number Diff line change
Expand Up @@ -748,7 +748,7 @@ static void *signal_listener(void *arg)
#ifndef HAVE_MACH
#if defined(HAVE_TIMER)
profile = (sig == SIGUSR1);
#if _POSIX_C_SOURCE >= 199309L
#if defined(_POSIX_C_SOURCE) && _POSIX_C_SOURCE >= 199309L
if (profile && !(info.si_code == SI_TIMER &&
info.si_value.sival_ptr == &timerprof))
profile = 0;
Expand Down

0 comments on commit 6774185

Please sign in to comment.