|
@@ -49,8 +49,10 @@ static SDL_bool send_foregrounding_pending = SDL_FALSE;
|
|
|
|
|
|
|
|
static void SDL_HandleSIG(int sig)
|
|
static void SDL_HandleSIG(int sig)
|
|
|
{
|
|
{
|
|
|
- /* Reset the signal handler */
|
|
|
|
|
|
|
+#ifndef HAVE_SIGACTION
|
|
|
|
|
+ /* Reset the signal handler if it was installed with signal() */
|
|
|
(void)signal(sig, SDL_HandleSIG);
|
|
(void)signal(sig, SDL_HandleSIG);
|
|
|
|
|
+#endif
|
|
|
|
|
|
|
|
/* Send a quit event next time the event loop pumps. */
|
|
/* Send a quit event next time the event loop pumps. */
|
|
|
/* We can't send it in signal handler; SDL_malloc() might be interrupted! */
|
|
/* We can't send it in signal handler; SDL_malloc() might be interrupted! */
|