Synchronet now requires the libarchive development package (e.g. libarchive-dev on Debian-based Linux distros, libarchive.org for more info) to build successfully.

Commit 7b3b1f40 authored by deuce's avatar deuce

Fix previous commit for Windows.

parent df69cf99
......@@ -202,6 +202,8 @@ raw_tty(void)
raw_input(&term);
tcsetattr(fileno(stdin), TCSANOW, &term);
#elif defined _WIN32
SetConsoleMode(GetStdHandle(STD_INPUT_HANDLE), 0);
#else
#warning Can't set the tty as raw on this platform
#endif
}
......@@ -1133,10 +1135,8 @@ int main(int argc, char **argv, char** environ)
if(isatty(fileno(stdin))) {
#ifdef __unix__
tcgetattr(fileno(stdin), &orig_term);
raw_tty();
#else
SetConsoleMode(GetStdHandle(STD_INPUT_HANDLE), 0);
#endif
raw_tty();
statfp=stderr;
}
else /* if redirected, don't send status messages to stderr */
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment