diff options
| author | Paul Eggert | 2012-11-21 13:06:52 -0800 |
|---|---|---|
| committer | Paul Eggert | 2012-11-21 13:06:52 -0800 |
| commit | 9239d970523919dfcf7437f728f4976b3a9467f3 (patch) | |
| tree | b9fd9fb6de02ad291a462a8387cb04d3972114e5 /lib-src/movemail.c | |
| parent | 954bba56c62e4e0637a933cf21626a55b873e144 (diff) | |
| download | emacs-9239d970523919dfcf7437f728f4976b3a9467f3.tar.gz emacs-9239d970523919dfcf7437f728f4976b3a9467f3.zip | |
Assume POSIX 1003.1-1988 or later for unistd.h.
* admin/CPP-DEFINES (BROKEN_GETWD, HAVE_GETCWD, HAVE_GETWD, HAVE_SIZE_T)
(HAVE_UNISTD_H): Remove.
* configure.ac: Do not check for getcwd or getwd.
* lib-src/emacsclient.c (getcwd): Remove decl.
(get_current_dir_name): Assume getcwd exists.
* lib-src/etags.c (HAVE_GETCWD): Remove.
(getcwd): Remove decl.
(NO_LONG_OPTIONS): Remove this. All uses removed.
Emacs always has GNU getopt.
(etags_getcwd): Assume getcwd exists.
* lib-src/movemail.c (F_OK, X_OK, W_OK, R_OK): Remove.
* nt/config.nt (HAVE_GETCWD): Remove.
* src/alloc.c: Assume unistd.h exists.
* src/fileio.c (Fexpand_file_name) [DOS_NT]: Use getcwd, not getwd.
* src/sysdep.c (get_current_dir_name): Assume getcwd exists.
(getwd) [USG]: Remove; no longer needed.
(sys_subshell) [DOS_NT]: Use getcwd, not getwd.
* src/w32.c (getcwd): Rename from getwd, and switch to getcwd's API.
* src/w32.h (getcwd): Remove decl.
Fixes: debbugs:12945
Diffstat (limited to 'lib-src/movemail.c')
| -rw-r--r-- | lib-src/movemail.c | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/lib-src/movemail.c b/lib-src/movemail.c index cd329a110a8..adc5dd96409 100644 --- a/lib-src/movemail.c +++ b/lib-src/movemail.c | |||
| @@ -96,13 +96,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 96 | #include <fcntl.h> | 96 | #include <fcntl.h> |
| 97 | #endif /* WINDOWSNT */ | 97 | #endif /* WINDOWSNT */ |
| 98 | 98 | ||
| 99 | #ifndef F_OK | ||
| 100 | #define F_OK 0 | ||
| 101 | #define X_OK 1 | ||
| 102 | #define W_OK 2 | ||
| 103 | #define R_OK 4 | ||
| 104 | #endif | ||
| 105 | |||
| 106 | #ifdef WINDOWSNT | 99 | #ifdef WINDOWSNT |
| 107 | #include <sys/locking.h> | 100 | #include <sys/locking.h> |
| 108 | #endif | 101 | #endif |