changeset 48617:802b2a15e451

(main): Test HAVE_GETCWD rather than BSD_SYSTEM.
author Richard M. Stallman <rms@gnu.org>
date Mon, 02 Dec 2002 16:14:35 +0000
parents d78591287910
children 8e21762fb622
files lib-src/emacsclient.c
diffstat 1 files changed, 6 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/lib-src/emacsclient.c	Mon Dec 02 16:12:45 2002 +0000
+++ b/lib-src/emacsclient.c	Mon Dec 02 16:14:35 2002 +0000
@@ -418,19 +418,19 @@
       fail (argc, argv);
     }
 
-#ifdef BSD_SYSTEM
+#ifdef HAVE_GETCWD
+  cwd = getcwd (string, sizeof string);
+#else
   cwd = getwd (string);
-#else
-  cwd = getcwd (string, sizeof string);
 #endif
   if (cwd == 0)
     {
       /* getwd puts message in STRING if it fails.  */
       fprintf (stderr, "%s: %s (%s)\n", argv[0],
-#ifdef BSD_SYSTEM
+#ifdef HAVE_GETCWD
+	       "Cannot get current working directory",
+#else
 	       string,
-#else
-	       "Cannot get current working directory",
 #endif
 	       strerror (errno));
       fail (argc, argv);