Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
38732dba
Commit
38732dba
authored
Dec 02, 2002
by
Richard M. Stallman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(main): Test HAVE_GETCWD rather than BSD_SYSTEM.
parent
c4ea99e1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
lib-src/emacsclient.c
lib-src/emacsclient.c
+6
-6
No files found.
lib-src/emacsclient.c
View file @
38732dba
...
...
@@ -418,19 +418,19 @@ main (argc, argv)
fail
(
argc
,
argv
);
}
#ifdef BSD_SYSTEM
cwd
=
getwd
(
string
);
#else
#ifdef HAVE_GETCWD
cwd
=
getcwd
(
string
,
sizeof
string
);
#else
cwd
=
getwd
(
string
);
#endif
if
(
cwd
==
0
)
{
/* getwd puts message in STRING if it fails. */
fprintf
(
stderr
,
"%s: %s (%s)
\n
"
,
argv
[
0
],
#ifdef BSD_SYSTEM
string
,
#else
#ifdef HAVE_GETCWD
"Cannot get current working directory"
,
#else
string
,
#endif
strerror
(
errno
));
fail
(
argc
,
argv
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment