It doesn't do any good to define signals that a system doesn't have ...
This commit is contained in:
+1
-10
@@ -63,16 +63,7 @@ AH_VERBATIM([VA_ZZZ_NEEDED_FUNCS],
|
|||||||
#endif
|
#endif
|
||||||
])
|
])
|
||||||
|
|
||||||
AC_CHECK_DECLS([SIGPWR, SIGUSR1],,,[#include <signal.h>])
|
AC_CHECK_DECLS([SIGPWR],,,[#include <signal.h>])
|
||||||
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
|
|
||||||
])
|
|
||||||
|
|
||||||
case $host in
|
case $host in
|
||||||
*-*-darwin*)
|
*-*-darwin*)
|
||||||
|
|||||||
@@ -11,7 +11,10 @@ static bool initted = false;
|
|||||||
|
|
||||||
static int signals[] = {
|
static int signals[] = {
|
||||||
SIGALRM, SIGBUS, SIGFPE, SIGHUP, SIGILL, SIGINT, SIGIOT, SIGPIPE,
|
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
|
-1
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user