diff options
Diffstat (limited to 'tests/test-getlogin_r.c')
-rw-r--r-- | tests/test-getlogin_r.c | 4 |
1 files changed, 3 insertions, 1 deletions
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 <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> |