[Commits] SDL: Fixed building on platforms without __sighandler_t

libsdl.org revision control commits-owner at libsdl.org
Tue Jan 30 18:12:27 PST 2018


details:   https://hg.libsdl.org/SDL/rev/4d52395a8dba
changeset: 11840:4d52395a8dba
user:      Sam Lantinga <slouken at libsdl.org>
date:      Tue Jan 30 18:12:25 2018 -0800
description:
Fixed building on platforms without __sighandler_t

diffstat:

 src/events/SDL_quit.c |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (21 lines):

diff -r 971881e55d61 -r 4d52395a8dba src/events/SDL_quit.c
--- a/src/events/SDL_quit.c	Tue Jan 30 18:08:34 2018 -0800
+++ b/src/events/SDL_quit.c	Tue Jan 30 18:12:25 2018 -0800
@@ -55,7 +55,7 @@
     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 @@
     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


More information about the commits mailing list