aboutsummaryrefslogtreecommitdiffstats
path: root/nt
diff options
context:
space:
mode:
authorPaul Eggert2012-11-21 13:06:52 -0800
committerPaul Eggert2012-11-21 13:06:52 -0800
commit9239d970523919dfcf7437f728f4976b3a9467f3 (patch)
treeb9fd9fb6de02ad291a462a8387cb04d3972114e5 /nt
parent954bba56c62e4e0637a933cf21626a55b873e144 (diff)
downloademacs-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 'nt')
-rw-r--r--nt/ChangeLog5
-rw-r--r--nt/config.nt6
2 files changed, 5 insertions, 6 deletions
diff --git a/nt/ChangeLog b/nt/ChangeLog
index 0eda3a699d6..4fa3d04513c 100644
--- a/nt/ChangeLog
+++ b/nt/ChangeLog
@@ -1,3 +1,8 @@
12012-11-21 Paul Eggert <eggert@cs.ucla.edu>
2
3 Assume POSIX 1003.1-1988 or later for unistd.h (Bug#12945).
4 * config.nt (HAVE_GETCWD): Remove.
5
12012-11-21 Eli Zaretskii <eliz@gnu.org> 62012-11-21 Eli Zaretskii <eliz@gnu.org>
2 7
3 * nmake.defs: Use !if, not !ifdef. For the details, see 8 * nmake.defs: Use !if, not !ifdef. For the details, see
diff --git a/nt/config.nt b/nt/config.nt
index 57c18ad2789..1adcbca89be 100644
--- a/nt/config.nt
+++ b/nt/config.nt
@@ -411,12 +411,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
411/* Define to 1 if you have the `getaddrinfo' function. */ 411/* Define to 1 if you have the `getaddrinfo' function. */
412#undef HAVE_GETADDRINFO 412#undef HAVE_GETADDRINFO
413 413
414/* Define to 1 if you have the `getcwd' function.
415 If you think about defining HAVE_GETCWD, don't: the alternative
416 getwd is redefined on w32.c, and does not really return the current
417 directory, to get the desired results elsewhere in Emacs. */
418#undef HAVE_GETCWD
419
420/* Define to 1 if you have the `getdelim' function. */ 414/* Define to 1 if you have the `getdelim' function. */
421#undef HAVE_GETDELIM 415#undef HAVE_GETDELIM
422 416