# HG changeset patch # User Simon Josefsson # Date 1148638439 0 # Node ID db206fe9e82c7169ecee2df111ed68d6f4db91cb # Parent de733e4fedea772f0a2b237ff63c3e55546a75b2 2006-05-26 Martin Lambers * getpass.c: Updates the test for the native W32 API, and adds missing includes, thus fixing compilation warnings. diff --git a/lib/ChangeLog b/lib/ChangeLog --- a/lib/ChangeLog +++ b/lib/ChangeLog @@ -1,3 +1,8 @@ +2006-05-26 Martin Lambers + + * getpass.c: Updates the test for the native W32 API, and adds + missing includes, thus fixing compilation warnings. + 2006-05-25 Paul Eggert * tempname.c (small_open, large_open): New macros. diff --git a/lib/getpass.c b/lib/getpass.c --- a/lib/getpass.c +++ b/lib/getpass.c @@ -23,7 +23,7 @@ #include -#if !defined _WIN32 +#if !((defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__) #include @@ -170,13 +170,17 @@ return buf; } -#else /* WIN32 */ +#else /* W32 native */ /* Windows implementation by Martin Lambers , improved by Simon Josefsson. */ /* For PASS_MAX. */ #include +/* For _getch(). */ +#include +/* For strdup(). */ +#include #ifndef PASS_MAX # define PASS_MAX 512