* tests/test-getlogin_r.c: Don't include <pwd.h> on native Windows.
+2016-12-17 Bruno Haible <bruno@clisp.org>
+
+ getlogin_r tests: Port to mingw.
+ * tests/test-getlogin_r.c: Don't include <pwd.h> on native Windows. Fixes
+ regression introduced on 2014-05-19.
+
2016-12-17 Bruno Haible <bruno@clisp.org>
getlogin: Port to newer mingw.
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
-#include <pwd.h>
+#if !((defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__)
+# include <pwd.h>
+#endif
#include <sys/stat.h>
#include <sys/types.h>