diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2006-07-04 05:39:07 +0000 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2006-07-04 05:39:07 +0000 |
commit | 6a9740567292a983b05533901dc7a687ec2fb68c (patch) | |
tree | 942771c90c0eff8fc776a1b631e9032e60641ea7 /lib/getpass.c | |
parent | 8e19f6282b0621f63b47716bd2eadfb9d466c758 (diff) | |
download | coreutils-6a9740567292a983b05533901dc7a687ec2fb68c.tar.xz |
Sync from gnulib.
Diffstat (limited to 'lib/getpass.c')
-rw-r--r-- | lib/getpass.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/lib/getpass.c b/lib/getpass.c index f0b3184ee..4e3339659 100644 --- a/lib/getpass.c +++ b/lib/getpass.c @@ -23,7 +23,7 @@ #include <stdio.h> -#if !defined _WIN32 +#if !((defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__) #include <stdbool.h> @@ -170,13 +170,17 @@ getpass (const char *prompt) return buf; } -#else /* WIN32 */ +#else /* W32 native */ /* Windows implementation by Martin Lambers <marlam@marlam.de>, improved by Simon Josefsson. */ /* For PASS_MAX. */ #include <limits.h> +/* For _getch(). */ +#include <conio.h> +/* For strdup(). */ +#include <string.h> #ifndef PASS_MAX # define PASS_MAX 512 |