Fixed building on platforms without __sighandler_t
authorSam Lantinga <slouken@libsdl.org>
Tue, 30 Jan 2018 18:12:25 -0800
changeset 118404d52395a8dba
parent 11839 971881e55d61
child 11841 fe303e78ea49
Fixed building on platforms without __sighandler_t
src/events/SDL_quit.c
     1.1 --- a/src/events/SDL_quit.c	Tue Jan 30 18:08:34 2018 -0800
     1.2 +++ b/src/events/SDL_quit.c	Tue Jan 30 18:12:25 2018 -0800
     1.3 @@ -55,7 +55,7 @@
     1.4      struct sigaction action;
     1.5      sigaction(SIGINT, NULL, &action);
     1.6  #ifdef HAVE_SA_SIGACTION
     1.7 -    if ( action.sa_handler == SIG_DFL && (__sighandler_t)action.sa_sigaction == SIG_DFL ) {
     1.8 +    if ( action.sa_handler == SIG_DFL && (void (*)(int))action.sa_sigaction == SIG_DFL ) {
     1.9  #else
    1.10      if ( action.sa_handler == SIG_DFL ) {
    1.11  #endif
    1.12 @@ -65,7 +65,7 @@
    1.13      sigaction(SIGTERM, NULL, &action);
    1.14  
    1.15  #ifdef HAVE_SA_SIGACTION
    1.16 -    if ( action.sa_handler == SIG_DFL && (__sighandler_t)action.sa_sigaction == SIG_DFL ) {
    1.17 +    if ( action.sa_handler == SIG_DFL && (void (*)(int))action.sa_sigaction == SIG_DFL ) {
    1.18  #else
    1.19      if ( action.sa_handler == SIG_DFL ) {
    1.20  #endif