diff options
author | Eli Zaretskii <eliz@gnu.org> | 2001-11-03 16:52:13 +0000 |
---|---|---|
committer | Eli Zaretskii <eliz@gnu.org> | 2001-11-03 16:52:13 +0000 |
commit | fe54008f3c77e8deb8d67453fc8f5cb1c325d039 (patch) | |
tree | b898a73ec2b3232f80047e8b408b823b5f521b16 /src/syssignal.h | |
parent | ed638cc9566bd821edac30ac5a3bd4fa5212b2cb (diff) | |
download | emacs-fe54008f3c77e8deb8d67453fc8f5cb1c325d039.tar.gz |
(sigunblock): Don't define if already defined.
Diffstat (limited to 'src/syssignal.h')
-rw-r--r-- | src/syssignal.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/syssignal.h b/src/syssignal.h index eafdb3a6a6a..2ea83b68b90 100644 --- a/src/syssignal.h +++ b/src/syssignal.h @@ -86,19 +86,25 @@ extern SIGMASKTYPE sigprocmask_set; 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) */ |