aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorEli Zaretskii2005-09-10 12:19:14 +0000
committerEli Zaretskii2005-09-10 12:19:14 +0000
commitb6682dd96f61d85fd6c6727706f36c60e7dbd693 (patch)
tree3ea038c99ae12d80d8fa79da1630d183c4634e66 /src
parent40da3962c8bec1a4ea7cffae3ed98252d14be414 (diff)
downloademacs-b6682dd96f61d85fd6c6727706f36c60e7dbd693.tar.gz
emacs-b6682dd96f61d85fd6c6727706f36c60e7dbd693.zip
[WINDOWSNT]: Add prototype for getwd.
Diffstat (limited to 'src')
-rw-r--r--src/sysdep.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/sysdep.c b/src/sysdep.c
index 0fbf37e537e..f75da6a9c2a 100644
--- a/src/sysdep.c
+++ b/src/sysdep.c
@@ -187,6 +187,7 @@ extern int quit_char;
187#define _P_WAIT 0 187#define _P_WAIT 0
188int _CRTAPI1 _spawnlp (int, const char *, const char *, ...); 188int _CRTAPI1 _spawnlp (int, const char *, const char *, ...);
189int _CRTAPI1 _getpid (void); 189int _CRTAPI1 _getpid (void);
190extern char *getwd (char *);
190#endif 191#endif
191 192
192#ifdef NONSYSTEM_DIR_LIBRARY 193#ifdef NONSYSTEM_DIR_LIBRARY
@@ -261,7 +262,7 @@ SIGMASKTYPE sigprocmask_set;
261 262
262#ifndef HAVE_CURRENT_DIR_NAME 263#ifndef HAVE_CURRENT_DIR_NAME
263 264
264/* Return the current working directory. Returns NULL on errors. 265/* Return the current working directory. Returns NULL on errors.
265 Any other returned value must be freed with free. This is used 266 Any other returned value must be freed with free. This is used
266 only when get_current_dir_name is not defined on the system. */ 267 only when get_current_dir_name is not defined on the system. */
267char* 268char*
@@ -293,7 +294,7 @@ get_current_dir_name ()
293 else 294 else
294 { 295 {
295 size_t buf_size = 1024; 296 size_t buf_size = 1024;
296 buf = (char *) malloc (buf_size); 297 buf = (char *) malloc (buf_size);
297 if (!buf) 298 if (!buf)
298 return NULL; 299 return NULL;
299 for (;;) 300 for (;;)