summaryrefslogtreecommitdiff
path: root/lib-src/emacsclient.c
diff options
context:
space:
mode:
authorRichard M. Stallman <rms@gnu.org>2002-12-02 16:14:35 +0000
committerRichard M. Stallman <rms@gnu.org>2002-12-02 16:14:35 +0000
commit38732dbaa3d35a399ada5d60153ce789217977b6 (patch)
treeebbb9539ed48adaab482f3f27f6510d016e2e047 /lib-src/emacsclient.c
parentc4ea99e1a8fb24d846aaf0ed3163daa29547b2f0 (diff)
(main): Test HAVE_GETCWD rather than BSD_SYSTEM.
Diffstat (limited to 'lib-src/emacsclient.c')
-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 007473929a..81245bcd66 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);