Skip to content
Snippets Groups Projects
Commit 99a01c03 authored by Wim Lewis's avatar Wim Lewis Committed by Alexandre Julliard
Browse files

EOVERFLOW does not exist on OpenBSD.

parent 56f85215
No related branches found
No related tags found
No related merge requests found
......@@ -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 */
......
......@@ -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;
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment