Fix the MS-Windows build

* src/fileio.c (Frename_file): Don't use ENOTSUP if it is equal to
ENOSYS.  (Bug#28097)  (Bug#27986)
This commit is contained in:
Eli Zaretskii 2017-08-15 19:17:41 +03:00
parent 7f8e50fb2a
commit 63daecda01

View file

@ -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:
#if ENOSYS != ENOTSUP
case ENOTSUP:
#endif
barf_or_query_if_file_exists (newname, rename_errno == EEXIST,
"rename to it",
INTEGERP (ok_if_already_exists),