From: Bruno Haible Date: Sat, 17 Dec 2016 10:02:41 +0000 (+0100) Subject: getlogin_r tests: Port to mingw. X-Git-Tag: v1.0~6485 X-Git-Url: https://gitweb.git.savannah.gnu.org/gitweb/?a=commitdiff_plain;h=d2443002ed96da7443bef3d6853cb818113676c7;p=gnulib.git getlogin_r tests: Port to mingw. * tests/test-getlogin_r.c: Don't include on native Windows. --- diff --git a/ChangeLog b/ChangeLog index bd5ef81cc7..c8bce8f884 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2016-12-17 Bruno Haible + + getlogin_r tests: Port to mingw. + * tests/test-getlogin_r.c: Don't include on native Windows. Fixes + regression introduced on 2014-05-19. + 2016-12-17 Bruno Haible getlogin: Port to newer mingw. diff --git a/tests/test-getlogin_r.c b/tests/test-getlogin_r.c index 94e7ec7262..7104d6ade7 100644 --- a/tests/test-getlogin_r.c +++ b/tests/test-getlogin_r.c @@ -28,7 +28,9 @@ SIGNATURE_CHECK (getlogin_r, int, (char *, size_t)); #include #include #include -#include +#if !((defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__) +# include +#endif #include #include