From fce487b87612adba330302f7683a3f7ed9ac1c97 Mon Sep 17 00:00:00 2001 From: Shea Levy Date: Sat, 24 Sep 2011 19:18:25 -0400 Subject: [PATCH] passphrase_read: Set errno to ENOSYS and return on Windows for now --- libfreerdp-utils/passphrase.c | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/libfreerdp-utils/passphrase.c b/libfreerdp-utils/passphrase.c index 4914c4802..220b695bd 100644 --- a/libfreerdp-utils/passphrase.c +++ b/libfreerdp-utils/passphrase.c @@ -18,13 +18,20 @@ */ #include +#include +#ifdef _WIN32 +char* freerdp_passphrase_read(const char* prompt, char* buf, size_t bufsiz) +{ + errno=ENOSYS; + return NULL; +} +#else #include #include #include #include #include #include -#include char* freerdp_passphrase_read(const char* prompt, char* buf, size_t bufsiz) { @@ -114,4 +121,4 @@ char* freerdp_passphrase_read(const char* prompt, char* buf, size_t bufsiz) return NULL; } } - +#endif