From 99a01c03d3a6a4a4209693ee7de3741618976195 Mon Sep 17 00:00:00 2001 From: Wim Lewis Date: Fri, 2 Jan 2004 20:11:35 +0000 Subject: [PATCH] EOVERFLOW does not exist on OpenBSD. --- server/fd.c | 2 ++ server/file.c | 2 ++ 2 files changed, 4 insertions(+) diff --git a/server/fd.c b/server/fd.c index 7c4ccb3a12e..c41c4edb4dd 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 ebb600564ee..4dfff91b02b 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; } }