From 0f6668010a309b1f8baa9b56d00d3ac8bfa14ed7 Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Mon, 5 May 2003 22:53:05 +0000 Subject: [PATCH] It doesn't do any good to define signals that a system doesn't have ... --- stepmania/configure.ac | 11 +---------- stepmania/src/archutils/Unix/SignalHandler.cpp | 5 ++++- 2 files changed, 5 insertions(+), 11 deletions(-) diff --git a/stepmania/configure.ac b/stepmania/configure.ac index de6f79a723..ae29530589 100644 --- a/stepmania/configure.ac +++ b/stepmania/configure.ac @@ -63,16 +63,7 @@ AH_VERBATIM([VA_ZZZ_NEEDED_FUNCS], #endif ]) -AC_CHECK_DECLS([SIGPWR, SIGUSR1],,,[#include ]) -AH_VERBATIM([SIGNALS], -[#if !HAVE_DECL_SIGPWR -#if HAVE_DECL_SIGUSR1 -#define SIGPWR SIGUSR1 -#else //!HAVE_DECL_SIGUSR1 -#define SIGPWR 30 -#endif //HAVE_DECL_SIGUSR1 -#endif //!HAVE_DECL_SIGPWR -]) +AC_CHECK_DECLS([SIGPWR],,,[#include ]) case $host in *-*-darwin*) diff --git a/stepmania/src/archutils/Unix/SignalHandler.cpp b/stepmania/src/archutils/Unix/SignalHandler.cpp index 0efc8551aa..f8f3216657 100644 --- a/stepmania/src/archutils/Unix/SignalHandler.cpp +++ b/stepmania/src/archutils/Unix/SignalHandler.cpp @@ -11,7 +11,10 @@ static bool initted = false; static int signals[] = { SIGALRM, SIGBUS, SIGFPE, SIGHUP, SIGILL, SIGINT, SIGIOT, SIGPIPE, - SIGPWR, SIGQUIT, SIGSEGV, SIGTRAP, SIGTERM, SIGVTALRM, SIGXCPU, SIGXFSZ, + SIGQUIT, SIGSEGV, SIGTRAP, SIGTERM, SIGVTALRM, SIGXCPU, SIGXFSZ, +#if defined(HAVE_DECL_SIGPWR) + SIGPWR, +#endif -1 };