changeset 65418:b7f29d144468

[WINDOWSNT]: Add prototype for getwd.
author Eli Zaretskii <eliz@gnu.org>
date Sat, 10 Sep 2005 12:19:14 +0000
parents 933174c69a3a
children b6ab0a3c0524
files src/sysdep.c
diffstat 1 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/sysdep.c	Sat Sep 10 11:46:35 2005 +0000
+++ b/src/sysdep.c	Sat Sep 10 12:19:14 2005 +0000
@@ -187,6 +187,7 @@
 #define _P_WAIT 0
 int _CRTAPI1 _spawnlp (int, const char *, const char *, ...);
 int _CRTAPI1 _getpid (void);
+extern char *getwd (char *);
 #endif
 
 #ifdef NONSYSTEM_DIR_LIBRARY
@@ -261,7 +262,7 @@
 
 #ifndef HAVE_CURRENT_DIR_NAME
 
-/* Return the current working directory.  Returns NULL on errors. 
+/* Return the current working directory.  Returns NULL on errors.
    Any other returned value must be freed with free. This is used
    only when get_current_dir_name is not defined on the system.  */
 char*
@@ -293,7 +294,7 @@
   else
     {
       size_t buf_size = 1024;
-      buf = (char *) malloc (buf_size); 
+      buf = (char *) malloc (buf_size);
       if (!buf)
         return NULL;
       for (;;)