diff options
Diffstat (limited to 'xorg-server/hw/kdrive/ephyr/ephyr.c')
-rw-r--r-- | xorg-server/hw/kdrive/ephyr/ephyr.c | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/xorg-server/hw/kdrive/ephyr/ephyr.c b/xorg-server/hw/kdrive/ephyr/ephyr.c index 8eda539aa..cfb1be811 100644 --- a/xorg-server/hw/kdrive/ephyr/ephyr.c +++ b/xorg-server/hw/kdrive/ephyr/ephyr.c @@ -64,8 +64,11 @@ Bool EphyrWantGrayScale = 0; Bool ephyrInitialize(KdCardInfo * card, EphyrPriv * priv) { +#ifdef _MSC_VER + __asm int 3; +#else OsSignal(SIGUSR1, hostx_handle_signal); - +#endif priv->base = 0; priv->bytes_per_line = 0; return TRUE; @@ -775,21 +778,29 @@ ephyrUpdateModifierState(unsigned int state) static void ephyrBlockSigio(void) { +#ifdef _MSC_VER + __asm int 3; +#else sigset_t set; sigemptyset(&set); sigaddset(&set, SIGIO); sigprocmask(SIG_BLOCK, &set, 0); +#endif } static void ephyrUnblockSigio(void) { +#ifdef _MSC_VER + __asm int 3; +#else sigset_t set; sigemptyset(&set); sigaddset(&set, SIGIO); sigprocmask(SIG_UNBLOCK, &set, 0); +#endif } static Bool |