Browse Source

Fixed building on platforms without __sighandler_t

Sam Lantinga 7 years ago
parent
commit
330b19c968
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/events/SDL_quit.c

+ 2 - 2
src/events/SDL_quit.c

@@ -55,7 +55,7 @@ SDL_QuitInit_Internal(void)
     struct sigaction action;
     struct sigaction action;
     sigaction(SIGINT, NULL, &action);
     sigaction(SIGINT, NULL, &action);
 #ifdef HAVE_SA_SIGACTION
 #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
 #else
     if ( action.sa_handler == SIG_DFL ) {
     if ( action.sa_handler == SIG_DFL ) {
 #endif
 #endif
@@ -65,7 +65,7 @@ SDL_QuitInit_Internal(void)
     sigaction(SIGTERM, NULL, &action);
     sigaction(SIGTERM, NULL, &action);
 
 
 #ifdef HAVE_SA_SIGACTION
 #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
 #else
     if ( action.sa_handler == SIG_DFL ) {
     if ( action.sa_handler == SIG_DFL ) {
 #endif
 #endif