From 330b19c96813d19b6a958daa737562eb61846553 Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Tue, 30 Jan 2018 18:12:25 -0800 Subject: [PATCH] Fixed building on platforms without __sighandler_t --- src/events/SDL_quit.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/events/SDL_quit.c b/src/events/SDL_quit.c index dc3467850e8d6..2b24efe3cc627 100644 --- a/src/events/SDL_quit.c +++ b/src/events/SDL_quit.c @@ -55,7 +55,7 @@ SDL_QuitInit_Internal(void) struct sigaction action; sigaction(SIGINT, NULL, &action); #ifdef HAVE_SA_SIGACTION - if ( action.sa_handler == SIG_DFL && (__sighandler_t)action.sa_sigaction == SIG_DFL ) { + if ( action.sa_handler == SIG_DFL && (void (*)(int))action.sa_sigaction == SIG_DFL ) { #else if ( action.sa_handler == SIG_DFL ) { #endif @@ -65,7 +65,7 @@ SDL_QuitInit_Internal(void) sigaction(SIGTERM, NULL, &action); #ifdef HAVE_SA_SIGACTION - if ( action.sa_handler == SIG_DFL && (__sighandler_t)action.sa_sigaction == SIG_DFL ) { + if ( action.sa_handler == SIG_DFL && (void (*)(int))action.sa_sigaction == SIG_DFL ) { #else if ( action.sa_handler == SIG_DFL ) { #endif