Mercurial > emacs
changeset 40677:31330b54d542
(sigunblock): Don't define if already defined.
author | Eli Zaretskii <eliz@gnu.org> |
---|---|
date | Sat, 03 Nov 2001 16:52:13 +0000 |
parents | f3f5c8468e0f |
children | eb81426b8a59 |
files | src/syssignal.h |
diffstat | 1 files changed, 6 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/syssignal.h Sat Nov 03 16:15:43 2001 +0000 +++ b/src/syssignal.h Sat Nov 03 16:52:13 2001 +0000 @@ -86,19 +86,25 @@ sigprocmask (SIG_BLOCK, &sigprocmask_set, NULL)) #endif +#ifndef sigunblock #define sigunblock(sig) \ (sigprocmask_set = SIGFULLMASK & ~(sig), \ sigprocmask (SIG_SETMASK, &sigprocmask_set, NULL)) +#endif #else #ifdef USG +#ifndef sigunblock #define sigunblock(sig) +#endif #else +#ifndef sigunblock #define sigunblock(SIG) \ { SIGMASKTYPE omask = sigblock (SIGEMPTYMASK); sigsetmask (omask & ~SIG); } +#endif #endif /* ! defined (USG) */ #endif /* ! defined (USG5_4) */