diff options
Diffstat (limited to 'winsup/cygwin/devices.cc')
-rw-r--r-- | winsup/cygwin/devices.cc | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/winsup/cygwin/devices.cc b/winsup/cygwin/devices.cc index d67bcf4ba..9c8a0d03c 100644 --- a/winsup/cygwin/devices.cc +++ b/winsup/cygwin/devices.cc @@ -6,7 +6,10 @@ #include "tty.h" #include "pinfo.h" #include "shared_info.h" +#include "path.h" +#include "fhandler.h" #include "ntdll.h" + typedef const device *KR_device_t; @@ -73,7 +76,7 @@ exists_console (const device& dev) case FH_CONSOLE: case FH_CONIN: case FH_CONOUT: - return !!GetConsoleCP (); + return fhandler_console::exists (); default: /* Only show my own console device (for now?) */ return iscons_dev (myself->ctty) && myself->ctty == devn; |