HCoop
/
bpt
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ce27e1b
)
Use BSD sockets whenever available, even if HAVE_SYSVIPC.
author
Richard M. Stallman
<rms@gnu.org>
Wed, 15 Mar 1995 23:31:02 +0000
(23:31 +0000)
committer
Richard M. Stallman
<rms@gnu.org>
Wed, 15 Mar 1995 23:31:02 +0000
(23:31 +0000)
(main): Use getcwd if not BSD.
lib-src/emacsclient.c
patch
|
blob
|
blame
|
history
diff --git
a/lib-src/emacsclient.c
b/lib-src/emacsclient.c
index
2a48a50
..
98fd8a2
100644
(file)
--- a/
lib-src/emacsclient.c
+++ b/
lib-src/emacsclient.c
@@
-42,7
+42,7
@@
main (argc, argv)
#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
@@
main (argc, argv)
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. */