Commit 1f776a5a authored by unknown's avatar unknown
Browse files

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.
parent 39fe0e81
Loading
Loading
Loading
Loading
+9 −0
Original line number Diff line number Diff line
@@ -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);