Mercurial > pidgin.yaz
changeset 15662:80944a182710
SIGEMT is not available on non-POSIX systems; SIGPOLL is present, instead. Thanks to Richard for catching this.
author | Evan Schoenberg <evan.s@dreskin.net> |
---|---|
date | Mon, 19 Feb 2007 04:52:43 +0000 |
parents | afa4230ccdd2 |
children | fc981ec147a6 b5c5fbe365d2 |
files | libpurple/util.c |
diffstat | 1 files changed, 10 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/libpurple/util.c Mon Feb 19 01:45:11 2007 +0000 +++ b/libpurple/util.c Mon Feb 19 04:52:43 2007 +0000 @@ -4124,7 +4124,15 @@ signal(SIGILL, SIG_DFL); /* 4: illegal instruction (not reset when caught) */ signal(SIGTRAP, SIG_DFL); /* 5: trace trap (not reset when caught) */ signal(SIGABRT, SIG_DFL); /* 6: abort program */ - signal(SIGEMT, SIG_DFL); /* 7: EMT instruction */ + +#ifdef SIGPOLL + signal(SIGPOLL, SIG_DFL); /* 7: pollable event (POSIX) */ +#endif /* SIGPOLL */ + +#ifdef SIGEMT + signal(SIGEMT, SIG_DFL); /* 7: EMT instruction (Non-POSIX) */ +#endif /* SIGEMT */ + signal(SIGFPE, SIG_DFL); /* 8: floating point exception */ signal(SIGBUS, SIG_DFL); /* 10: bus error */ signal(SIGSEGV, SIG_DFL); /* 11: segmentation violation */ @@ -4135,5 +4143,5 @@ signal(SIGCHLD, SIG_DFL); /* 20: child status has changed */ signal(SIGXCPU, SIG_DFL); /* 24: exceeded CPU time limit */ signal(SIGXFSZ, SIG_DFL); /* 25: exceeded file size limit */ -#endif +#endif /* HAVE_SIGNAL_H */ }