aboutsummaryrefslogtreecommitdiffstats
path: root/lib-src
diff options
context:
space:
mode:
authorRichard M. Stallman2002-12-02 16:14:35 +0000
committerRichard M. Stallman2002-12-02 16:14:35 +0000
commit38732dbaa3d35a399ada5d60153ce789217977b6 (patch)
treeebbb9539ed48adaab482f3f27f6510d016e2e047 /lib-src
parentc4ea99e1a8fb24d846aaf0ed3163daa29547b2f0 (diff)
downloademacs-38732dbaa3d35a399ada5d60153ce789217977b6.tar.gz
emacs-38732dbaa3d35a399ada5d60153ce789217977b6.zip
(main): Test HAVE_GETCWD rather than BSD_SYSTEM.
Diffstat (limited to 'lib-src')
-rw-r--r--lib-src/emacsclient.c12
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)
418 fail (argc, argv); 418 fail (argc, argv);
419 } 419 }
420 420
421#ifdef BSD_SYSTEM 421#ifdef HAVE_GETCWD
422 cwd = getwd (string);
423#else
424 cwd = getcwd (string, sizeof string); 422 cwd = getcwd (string, sizeof string);
423#else
424 cwd = getwd (string);
425#endif 425#endif
426 if (cwd == 0) 426 if (cwd == 0)
427 { 427 {
428 /* getwd puts message in STRING if it fails. */ 428 /* getwd puts message in STRING if it fails. */
429 fprintf (stderr, "%s: %s (%s)\n", argv[0], 429 fprintf (stderr, "%s: %s (%s)\n", argv[0],
430#ifdef BSD_SYSTEM 430#ifdef HAVE_GETCWD
431 string,
432#else
433 "Cannot get current working directory", 431 "Cannot get current working directory",
432#else
433 string,
434#endif 434#endif
435 strerror (errno)); 435 strerror (errno));
436 fail (argc, argv); 436 fail (argc, argv);