diff options
-rw-r--r-- | src/common/compat.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/common/compat.c b/src/common/compat.c index 68544c8bd5..7355d34ddd 100644 --- a/src/common/compat.c +++ b/src/common/compat.c @@ -68,12 +68,14 @@ #ifdef HAVE_CRT_EXTERNS_H #include <crt_externs.h> #endif -#ifdef HAVE_READPASSPHRASE_H + +#ifdef _WIN32 +#include <conio.h> +#include <wchar.h> +#elif defined(HAVE_READPASSPHRASE_H) #include <readpassphrase.h> -#elif !defined(_WIN32) -#include "tor_readpassphrase.h" #else -#include <conio.h> +#include "tor_readpassphrase.h" #endif #ifndef HAVE_GETTIMEOFDAY |