Mercurial > emacs
diff lib-src/emacsclient.c @ 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 | baab57e76991 |
| children | c203fc1363d4 |
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. */
