Fix MS-Windows build following 2012-11-21T21:06:52Z!eggert@cs.ucla.edu.

src/w32.c (getcwd): Fix the 2nd argument type, to prevent conflicts
 with Windows system header.

Fixes: debbugs:12945
This commit is contained in:
Eli Zaretskii
2012-11-22 05:56:38 +02:00
parent 723da6aa83
commit ec84768f97
2 changed files with 6 additions and 1 deletions

View File

@@ -1,3 +1,8 @@
2012-11-22 Eli Zaretskii <eliz@gnu.org>
* w32.c (getcwd): Fix the 2nd argument type, to prevent conflicts
with Windows system header.
2012-11-21 Paul Eggert <eggert@cs.ucla.edu>
Assume POSIX 1003.1-1988 or later for unistd.h (Bug#12945).

View File

@@ -908,7 +908,7 @@ static char startup_dir[MAXPATHLEN];
/* Get the current working directory. */
char *
getcwd (char *dir, size_t dirsize)
getcwd (char *dir, int dirsize)
{
if (!dirsize)
{