aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEli Zaretskii <[email protected]>2005-09-10 12:19:14 +0000
committerEli Zaretskii <[email protected]>2005-09-10 12:19:14 +0000
commitb6682dd96f61d85fd6c6727706f36c60e7dbd693 (patch)
tree3ea038c99ae12d80d8fa79da1630d183c4634e66
parent40da3962c8bec1a4ea7cffae3ed98252d14be414 (diff)
[WINDOWSNT]: Add prototype for getwd.
-rw-r--r--src/sysdep.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/sysdep.c b/src/sysdep.c
index 0fbf37e537..f75da6a9c2 100644
--- a/src/sysdep.c
+++ b/src/sysdep.c
@@ -187,6 +187,7 @@ extern int quit_char;
#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 @@ SIGMASKTYPE sigprocmask_set;
#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 @@ get_current_dir_name ()
else
{
size_t buf_size = 1024;
- buf = (char *) malloc (buf_size);
+ buf = (char *) malloc (buf_size);
if (!buf)
return NULL;
for (;;)