changeset 11030:3345f6426f49

Use BSD sockets whenever available, even if HAVE_SYSVIPC. (main): Use getcwd if not BSD.
author Richard M. Stallman <rms@gnu.org>
date Wed, 15 Mar 1995 23:31:02 +0000
parents 3f98c129f7bc
children a6d5c39ed964
files lib-src/emacsclient.c
diffstat 1 files changed, 5 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/lib-src/emacsclient.c	Wed Mar 15 23:06:57 1995 +0000
+++ b/lib-src/emacsclient.c	Wed Mar 15 23:31:02 1995 +0000
@@ -42,7 +42,7 @@
 
 #else /* HAVE_SOCKETS or HAVE_SYSVIPC */
 
-#if ! defined (HAVE_SYSVIPC)
+#if defined (HAVE_SOCKETS)
 /* BSD code is very different from SYSV IPC code */
 
 #include <sys/types.h>
@@ -135,7 +135,11 @@
       exit (1);
     }
 
+#ifdef BSD
   cwd = getwd (string);
+#else
+  cwd = getcwd (string, sizeof string);
+#endif
   if (cwd == 0)
     {
       /* getwd puts message in STRING if it fails.  */