* bug#28097: 26.0.50; Commit 9746058 breaks build on MS-Windows
@ 2017-08-15 14:45 Chris Zheng
2017-08-15 16:19 ` Eli Zaretskii
0 siblings, 1 reply; 2+ messages in thread
From: Chris Zheng @ 2017-08-15 14:45 UTC (permalink / raw)
To: 28097
The error message is
fileio.c: In function 'Frename_file':
fileio.c:2300:41: error: duplicate case value
case EEXIST: case EINVAL: case ENOSYS: case ENOTSUP:
^~~~
fileio.c:2300:28: note: previously used here
case EEXIST: case EINVAL: case ENOSYS: case ENOTSUP:
^~~~
Because the file nt/inc/ms-w32.h, line 389, has the definition
“#define ENOTSUP ENOSYS” and it is included early than errno.h
which has the right define. One possible fix is is
@@ -2297,7 +2297,10 @@ This is what happens in interactive use with M-x. */)
rename_errno = errno;
switch (rename_errno)
{
- case EEXIST: case EINVAL: case ENOSYS: case ENOTSUP:
+ case EEXIST: case EINVAL: case ENOSYS:
+#ifdef DARWIN_OS
+ case ENOTSUP:
+#endif
barf_or_query_if_file_exists (newname, rename_errno == EEXIST,
"rename to it",
INTEGERP (ok_if_already_exists),
Or we can change the #define in ms-w32.h.
Could you please have a look on it?
Thank you,
Chris
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2017-08-15 16:19 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-08-15 14:45 bug#28097: 26.0.50; Commit 9746058 breaks build on MS-Windows Chris Zheng
2017-08-15 16:19 ` Eli Zaretskii
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.