From: Eli Zaretskii Date: Sat, 3 Nov 2001 16:52:13 +0000 (+0000) Subject: (sigunblock): Don't define if already defined. X-Git-Tag: ttn-vms-21-2-B4~18862 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=fe54008f3c77e8deb8d67453fc8f5cb1c325d039;p=emacs.git (sigunblock): Don't define if already defined. --- 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) */