Files
MSYS2-packages/msys2-runtime/0100-cygwin-regression.patch
2017-09-13 16:00:29 +03:00

26 lines
978 B
Diff

From 6a0ecce00a525ecb0544e938df0d5c1bd1465b7a Mon Sep 17 00:00:00 2001
From: Yaakov Selkowitz <yselkowi@redhat.com>
Date: Tue, 12 Sep 2017 04:07:55 +0000 (23:07 -0500)
Subject: [PATCH] cygwin: Revert "cygwin: only expose /dev/con{in,out,sole} when started from a Windows console"
Signed-off-by: Yaakov Selkowitz <yselkowi@redhat.com>
---
winsup/cygwin/fhandler.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/winsup/cygwin/fhandler.h b/winsup/cygwin/fhandler.h
index cd73e6e..153e384 100644 (file)
--- a/winsup/cygwin/fhandler.h
+++ b/winsup/cygwin/fhandler.h
@@ -1439,7 +1439,7 @@ private:
ssize_t __stdcall write (const void *ptr, size_t len);
void doecho (const void *str, DWORD len) { (void) write (str, len); }
int close ();
- static bool exists () {return shared_console_info && !!GetConsoleCP ();}
+ static bool exists () {return !!GetConsoleCP ();}
int tcflush (int);
int tcsetattr (int a, const struct termios *t);
--
2.13.1