diff options
author | Richard M. Stallman <rms@gnu.org> | 2002-12-02 16:14:35 +0000 |
---|---|---|
committer | Richard M. Stallman <rms@gnu.org> | 2002-12-02 16:14:35 +0000 |
commit | 5a95d144363eed081b50539a9c27f2ce2286a639 (patch) | |
tree | 6ea7721c7ca696a2cf361333efd22aede11a93e4 /lib-src | |
parent | 53da7d91250659075ae02123cb0dd7758f9d19da (diff) | |
download | emacs-5a95d144363eed081b50539a9c27f2ce2286a639.tar.gz |
(main): Test HAVE_GETCWD rather than BSD_SYSTEM.
Diffstat (limited to 'lib-src')
-rw-r--r-- | lib-src/emacsclient.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/lib-src/emacsclient.c b/lib-src/emacsclient.c index 007473929a3..81245bcd66a 100644 --- a/lib-src/emacsclient.c +++ b/lib-src/emacsclient.c @@ -418,19 +418,19 @@ main (argc, argv) fail (argc, argv); } -#ifdef BSD_SYSTEM - cwd = getwd (string); -#else +#ifdef HAVE_GETCWD cwd = getcwd (string, sizeof string); +#else + cwd = getwd (string); #endif if (cwd == 0) { /* getwd puts message in STRING if it fails. */ fprintf (stderr, "%s: %s (%s)\n", argv[0], -#ifdef BSD_SYSTEM - string, -#else +#ifdef HAVE_GETCWD "Cannot get current working directory", +#else + string, #endif strerror (errno)); fail (argc, argv); |