Sigaction problem/fix

Hi,

I’ve just tried compiling up the CVS version, and found a small problem.
Using Glibc under linux, sigset_t is not an int…

Here’s the fix :slight_smile:

Index: SDL_timer.c===================================================================
RCS file: /home/slouken/cvsroot/SDL/src/linux/SDL_timer.c,v
retrieving revision 1.1.1.1
diff -u -r1.1.1.1 SDL_timer.c
— SDL_timer.c 1998/05/27 18:25:52 1.1.1.1
+++ SDL_timer.c 1998/05/27 22:10:32
@@ -111,9 +111,9 @@

    /* Set the alarm handler (Linux specific) */
    action.sa_handler = HandleAlarm;
  •   action.sa_mask = 0;
      action.sa_flags = SA_RESTART;
      action.sa_restorer = NULL;
    
  •   sigemptyset(&action.sa_mask);
      sigaction(SIGALRM, &action, NULL);
      return(0);
    

}

I’ve just tried compiling up the CVS version, and found a small problem.
Using Glibc under linux, sigset_t is not an int…

Here’s the fix :slight_smile:

Thanks.
The updated CVS source has a fix that will also work on the Alpha platform.

See ya!
-Sam Lantinga (slouken at devolution.com)–
Author of Simple DirectMedia Layer -
http://www.devolution.com/~slouken/SDL/