mingw: fix compile errors with linenoise and fstream

This commit is contained in:
Benjamin Sergeant
2021-03-19 11:18:55 -07:00
parent b36a2d1faa
commit 48166a9a72
3 changed files with 17 additions and 9 deletions

View File

@ -1639,7 +1639,10 @@ bool enableRawMode(int fd) {
/* Init windows console handles only once */
hOut = GetStdHandle(STD_OUTPUT_HANDLE);
if (hOut==INVALID_HANDLE_VALUE) goto fatal;
if (hOut==INVALID_HANDLE_VALUE) {
errno = ENOTTY;
return false;
}
}
DWORD consolemodeOut;