diff --git a/server/fd.c b/server/fd.c index 7c4ccb3a12..c41c4edb4d 100644 --- a/server/fd.c +++ b/server/fd.c @@ -501,7 +501,9 @@ static int set_unix_lock( struct fd *fd, file_pos_t start, file_pos_t end, int t if (fl.l_type == F_WRLCK) return 1; set_error( STATUS_ACCESS_DENIED ); return 0; +#ifdef EOVERFLOW case EOVERFLOW: +#endif case EINVAL: /* this can happen if off_t is 64-bit but the kernel only supports 32-bit */ /* in that case we shrink the limit and retry */ diff --git a/server/file.c b/server/file.c index ebb600564e..4dfff91b02 100644 --- a/server/file.c +++ b/server/file.c @@ -462,7 +462,9 @@ void file_set_error(void) case ESPIPE: set_win32_error( ERROR_SEEK ); break; case ENOTEMPTY: set_error( STATUS_DIRECTORY_NOT_EMPTY ); break; case EIO: set_error( STATUS_ACCESS_VIOLATION ); break; +#ifdef EOVERFLOW case EOVERFLOW: set_error( STATUS_INVALID_PARAMETER ); break; +#endif default: perror("file_set_error"); set_win32_error( ERROR_UNKNOWN ); break; } }