diff options
author | Richard M. Stallman <rms@gnu.org> | 2002-12-02 15:48:26 +0000 |
---|---|---|
committer | Richard M. Stallman <rms@gnu.org> | 2002-12-02 15:48:26 +0000 |
commit | 5c80c0092004c750e3761b1afe6da48061e55971 (patch) | |
tree | c787b875e504349de328cf06c3913390a8cefe1b | |
parent | aa9ecab9541497cad32ca7e9a620319d77fff095 (diff) | |
download | emacs-5c80c0092004c750e3761b1afe6da48061e55971.tar.gz |
(main): Test HAVE_GETCWD, not BSD_SYSTEM.
-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 988bfc4fd4d..65438de5fba 100644 --- a/lib-src/emacsclient.c +++ b/lib-src/emacsclient.c @@ -399,19 +399,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); |