* emacsclient.c (getcwd): Fix previous change.
authorJuanma Barranquero <lekktu@gmail.com>
Sun, 25 Jul 2010 03:36:54 +0000 (05:36 +0200)
committerJuanma Barranquero <lekktu@gmail.com>
Sun, 25 Jul 2010 03:36:54 +0000 (05:36 +0200)
  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).

lib-src/ChangeLog
lib-src/emacsclient.c

index 09d1390..d0ab108 100644 (file)
@@ -1,3 +1,10 @@
+2010-07-25  Juanma Barranquero  <lekktu@gmail.com>
+
+       * 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).
+
 2010-07-25  Juanma Barranquero  <lekktu@gmail.com>
 
        * emacsclient.c (getcwd, w32_getenv):
index 39b5956..1ca9b79 100644 (file)
@@ -82,7 +82,9 @@ along with GNU Emacs.  If not, see <http://www.gnu.org/licenses/>.  */
 
 \f
 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 *);