diff options
Diffstat (limited to 'hw/xwin/InitInput.c')
-rw-r--r-- | hw/xwin/InitInput.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/hw/xwin/InitInput.c b/hw/xwin/InitInput.c index 6219fa2b9..e2277e45f 100644 --- a/hw/xwin/InitInput.c +++ b/hw/xwin/InitInput.c @@ -57,7 +57,9 @@ CARD32 g_c32LastInputEventTime = 0; * References to external symbols */ +#ifdef HAS_DEVWINDOWS extern int g_fdMessageQueue; +#endif extern Bool g_fXdmcpEnabled; #ifdef XWIN_CLIPBOARD extern winDispatchProcPtr winProcEstablishConnectionOrig; @@ -150,6 +152,7 @@ InitInput (int argc, char *argv[]) /* Initialize the mode key states */ winInitializeModeKeyStates (); +#ifdef HAS_DEVWINDOWS /* Only open the windows message queue device once */ if (g_fdMessageQueue == WIN_FD_INVALID) { @@ -165,6 +168,7 @@ InitInput (int argc, char *argv[]) /* Add the message queue as a device to wait for in WaitForSomething */ AddEnabledDevice (g_fdMessageQueue); } +#endif #if CYGDEBUG winDebug ("InitInput - returning\n"); |