diff options
| author | Eli Zaretskii | 2005-09-10 12:19:14 +0000 |
|---|---|---|
| committer | Eli Zaretskii | 2005-09-10 12:19:14 +0000 |
| commit | b6682dd96f61d85fd6c6727706f36c60e7dbd693 (patch) | |
| tree | 3ea038c99ae12d80d8fa79da1630d183c4634e66 /src | |
| parent | 40da3962c8bec1a4ea7cffae3ed98252d14be414 (diff) | |
| download | emacs-b6682dd96f61d85fd6c6727706f36c60e7dbd693.tar.gz emacs-b6682dd96f61d85fd6c6727706f36c60e7dbd693.zip | |
[WINDOWSNT]: Add prototype for getwd.
Diffstat (limited to 'src')
| -rw-r--r-- | src/sysdep.c | 5 |
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 |
| 188 | int _CRTAPI1 _spawnlp (int, const char *, const char *, ...); | 188 | int _CRTAPI1 _spawnlp (int, const char *, const char *, ...); |
| 189 | int _CRTAPI1 _getpid (void); | 189 | int _CRTAPI1 _getpid (void); |
| 190 | extern 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. */ |
| 267 | char* | 268 | char* |
| @@ -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 (;;) |