diff options
author | unknown <SergeyV@selena.> | 2005-09-06 22:56:16 +0400 |
---|---|---|
committer | unknown <SergeyV@selena.> | 2005-09-06 22:56:16 +0400 |
commit | 1f776a5a45f84dfb4c4e28ef618d7edf1ab048de (patch) | |
tree | ee1ad352bc0b3a748ce837cdc1200c89a46a8f9b /libmysqld | |
parent | 39fe0e81a0d7c41d239575fc779c4ac9ea569c1b (diff) | |
download | mariadb-git-1f776a5a45f84dfb4c4e28ef618d7edf1ab048de.tar.gz |
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.
Diffstat (limited to 'libmysqld')
-rw-r--r-- | libmysqld/lib_vio.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/libmysqld/lib_vio.c b/libmysqld/lib_vio.c index ccad6ac8b7e..0f5f7fda550 100644 --- a/libmysqld/lib_vio.c +++ b/libmysqld/lib_vio.c @@ -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); |