mirror of
https://github.com/MariaDB/server.git
synced 2026-04-25 09:45:31 +02:00
Fixes a problem with patch 1.2140, that prevented libmysqld
to be built successfully. libmysqld/lib_vio.c: Added a copy of vio_was_interrupted() from viosocket.c, for successful build of libmysqld that uses own set of vio*() functions.
This commit is contained in:
parent
39fe0e81a0
commit
1f776a5a45
1 changed files with 9 additions and 0 deletions
|
|
@ -181,6 +181,15 @@ vio_should_retry(Vio * vio __attribute__((unused)))
|
|||
}
|
||||
|
||||
|
||||
my_bool
|
||||
vio_was_interrupted(Vio * vio __attribute__((unused)))
|
||||
{
|
||||
int en = socket_errno;
|
||||
return (en == SOCKET_EAGAIN || en == SOCKET_EINTR ||
|
||||
en == SOCKET_EWOULDBLOCK || en == SOCKET_ETIMEDOUT);
|
||||
}
|
||||
|
||||
|
||||
int vio_close(Vio * vio)
|
||||
{
|
||||
return(0);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue