X-Git-Url: https://git.hcoop.net/bpt/emacs.git/blobdiff_plain/9889c728e0ac840005a175e736f9bacd1a45cd56..aa6d10fafd1aa7680a5942d86d5de781e8b65e6a:/src/x11term.h diff --git a/src/x11term.h b/src/x11term.h index c6f24ba91e..367eeaacc9 100644 --- a/src/x11term.h +++ b/src/x11term.h @@ -13,11 +13,12 @@ #define BLOCK_INPUT_DECLARE() int BLOCK_INPUT_mask #ifdef SIGIO -#define BLOCK_INPUT() BLOCK_INPUT_mask = sigblock (sigmask (SIGIO)) -#define UNBLOCK_INPUT() sigsetmask (BLOCK_INPUT_mask) +#define BLOCK_INPUT() EMACS_SIGBLOCKX (SIGIO, BLOCK_INPUT_mask) +#define UNBLOCK_INPUT() \ + do { int _dummy; EMACS_SIGSETMASK (BLOCK_INPUT_mask, _dummy); } while (0) #else /* not SIGIO */ #define BLOCK_INPUT() #define UNBLOCK_INPUT() #endif /* SIGIO */ -#define CLASS "emacs" /* class id for GNU Emacs, used in .Xdefaults, etc. */ +#define CLASS "Emacs" /* class id for GNU Emacs, used in .Xdefaults, etc. */