diff options
| author | Richard M. Stallman | 1995-03-15 23:31:02 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1995-03-15 23:31:02 +0000 |
| commit | ee6a193c4ca86a0066c47b65658ba33f643de03a (patch) | |
| tree | 8111ab8dfaf8b4d391fbc690a3f4fde5cdfe1414 /lib-src | |
| parent | ce27e1b0b3a2a54d577652416a368f871faece3d (diff) | |
| download | emacs-ee6a193c4ca86a0066c47b65658ba33f643de03a.tar.gz emacs-ee6a193c4ca86a0066c47b65658ba33f643de03a.zip | |
Use BSD sockets whenever available, even if HAVE_SYSVIPC.
(main): Use getcwd if not BSD.
Diffstat (limited to 'lib-src')
| -rw-r--r-- | lib-src/emacsclient.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lib-src/emacsclient.c b/lib-src/emacsclient.c index 2a48a5022d1..98fd8a24aa6 100644 --- a/lib-src/emacsclient.c +++ b/lib-src/emacsclient.c | |||
| @@ -42,7 +42,7 @@ main (argc, argv) | |||
| 42 | 42 | ||
| 43 | #else /* HAVE_SOCKETS or HAVE_SYSVIPC */ | 43 | #else /* HAVE_SOCKETS or HAVE_SYSVIPC */ |
| 44 | 44 | ||
| 45 | #if ! defined (HAVE_SYSVIPC) | 45 | #if defined (HAVE_SOCKETS) |
| 46 | /* BSD code is very different from SYSV IPC code */ | 46 | /* BSD code is very different from SYSV IPC code */ |
| 47 | 47 | ||
| 48 | #include <sys/types.h> | 48 | #include <sys/types.h> |
| @@ -135,7 +135,11 @@ main (argc, argv) | |||
| 135 | exit (1); | 135 | exit (1); |
| 136 | } | 136 | } |
| 137 | 137 | ||
| 138 | #ifdef BSD | ||
| 138 | cwd = getwd (string); | 139 | cwd = getwd (string); |
| 140 | #else | ||
| 141 | cwd = getcwd (string, sizeof string); | ||
| 142 | #endif | ||
| 139 | if (cwd == 0) | 143 | if (cwd == 0) |
| 140 | { | 144 | { |
| 141 | /* getwd puts message in STRING if it fails. */ | 145 | /* getwd puts message in STRING if it fails. */ |