Mercurial > audlegacy
diff src/audacious/signals.c @ 4692:84f70d4b36e6
Fix compile when signalfd is not available entirely.
author | William Pitcock <nenolod@atheme.org> |
---|---|
date | Sat, 05 Jul 2008 17:04:39 -0500 |
parents | cd1e4d4aa0b9 |
children | 463675303b6f |
line wrap: on
line diff
--- a/src/audacious/signals.c Sat Jul 05 16:56:35 2008 -0500 +++ b/src/audacious/signals.c Sat Jul 05 17:04:39 2008 -0500 @@ -85,7 +85,7 @@ abort(); } -#ifndef HAVE_SIGNALFD +#if !defined(HAVE_SIGNALFD) && !defined(HAVE_SYS_SIGNALFD_H) static void * signal_process_signals (void *data) @@ -341,6 +341,8 @@ } #endif +#if !defined(HAVE_SIGNALFD) && !defined(HAVE_SYS_SIGNALFD_H) + if (signal_check_for_broken_impl() != TRUE) { signal_initialize_blockers(); @@ -361,4 +363,11 @@ g_thread_create(signal_process_signals_linuxthread, NULL, FALSE, NULL); } + +#else + + signal_initialize_blockers(); + g_thread_create(signal_process_signals, NULL, FALSE, NULL); + +#endif }