* emacsclient.c (getcwd): Fix previous change.
Make getcwd conditional on HAVE_GETCWD and declare with the correct POSIX profile (for some reason MinGW headers define its 2nd arg as int, not size_t; but getcwd is not used on Windows nonetheless).
This commit is contained in:
parent
361358ea12
commit
35a7804dae
2 changed files with 10 additions and 1 deletions
|
@ -82,7 +82,9 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
|
|||
|
||||
|
||||
char *getenv (const char *), *getwd (char *);
|
||||
char *(getcwd) (char *, int);
|
||||
#ifdef HAVE_GETCWD
|
||||
char *(getcwd) (char *, size_t);
|
||||
#endif
|
||||
|
||||
#ifdef WINDOWSNT
|
||||
char *w32_getenv (char *);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue