diff options
| author | Eli Zaretskii | 2017-08-15 19:17:41 +0300 |
|---|---|---|
| committer | Eli Zaretskii | 2017-08-15 19:17:41 +0300 |
| commit | 63daecda016a6d8f1241c07d7a06b154e31bfcb4 (patch) | |
| tree | e3f3dbf5f02005f582c2e9fb99c5179852d0acac | |
| parent | 7f8e50fb2acb368fd1d5edabb48a9f2b1cd9a51c (diff) | |
| download | emacs-63daecda016a6d8f1241c07d7a06b154e31bfcb4.tar.gz emacs-63daecda016a6d8f1241c07d7a06b154e31bfcb4.zip | |
Fix the MS-Windows build
* src/fileio.c (Frename_file): Don't use ENOTSUP if it is equal to
ENOSYS. (Bug#28097) (Bug#27986)
| -rw-r--r-- | src/fileio.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/fileio.c b/src/fileio.c index e557483ac4a..1b832be344d 100644 --- a/src/fileio.c +++ b/src/fileio.c | |||
| @@ -2297,7 +2297,10 @@ This is what happens in interactive use with M-x. */) | |||
| 2297 | rename_errno = errno; | 2297 | rename_errno = errno; |
| 2298 | switch (rename_errno) | 2298 | switch (rename_errno) |
| 2299 | { | 2299 | { |
| 2300 | case EEXIST: case EINVAL: case ENOSYS: case ENOTSUP: | 2300 | case EEXIST: case EINVAL: case ENOSYS: |
| 2301 | #if ENOSYS != ENOTSUP | ||
| 2302 | case ENOTSUP: | ||
| 2303 | #endif | ||
| 2301 | barf_or_query_if_file_exists (newname, rename_errno == EEXIST, | 2304 | barf_or_query_if_file_exists (newname, rename_errno == EEXIST, |
| 2302 | "rename to it", | 2305 | "rename to it", |
| 2303 | INTEGERP (ok_if_already_exists), | 2306 | INTEGERP (ok_if_already_exists), |