comparison lib-src/emacsclient.c @ 109517:d22063077a0c

* 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).
author Juanma Barranquero <lekktu@gmail.com>
date Sun, 25 Jul 2010 05:36:54 +0200
parents 68ca98ae70fb
children eb720d8ea1c6
comparison
equal deleted inserted replaced
109516:68ca98ae70fb 109517:d22063077a0c
80 #include <signal.h> 80 #include <signal.h>
81 #include <errno.h> 81 #include <errno.h>
82 82
83 83
84 char *getenv (const char *), *getwd (char *); 84 char *getenv (const char *), *getwd (char *);
85 char *(getcwd) (char *, int); 85 #ifdef HAVE_GETCWD
86 char *(getcwd) (char *, size_t);
87 #endif
86 88
87 #ifdef WINDOWSNT 89 #ifdef WINDOWSNT
88 char *w32_getenv (char *); 90 char *w32_getenv (char *);
89 #define egetenv(VAR) w32_getenv(VAR) 91 #define egetenv(VAR) w32_getenv(VAR)
90 #else 92 #else