summaryrefslogtreecommitdiff
path: root/vio
diff options
context:
space:
mode:
authorVladislav Vaintroub <wlad@mariadb.com>2019-07-01 00:43:26 +0200
committerOleksandr Byelkin <sanja@mariadb.com>2019-07-28 13:45:34 +0200
commit1c27eb7ebd2c95008ba9b4fdfdee40615ca2f803 (patch)
treee8d0cb5f81deeebe7b863418c757a9a321d531db /vio
parentf61a98068695994bcfddc1146e7744f50296f9b9 (diff)
downloadmariadb-git-1c27eb7ebd2c95008ba9b4fdfdee40615ca2f803.tar.gz
Do not compile socket IO code in WolfSSL
We use own IO callbacks from server code anyway.
Diffstat (limited to 'vio')
-rw-r--r--vio/viosocket.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/vio/viosocket.c b/vio/viosocket.c
index 6e6d56d8549..9ef703dee8d 100644
--- a/vio/viosocket.c
+++ b/vio/viosocket.c
@@ -148,6 +148,10 @@ int vio_socket_io_wait(Vio *vio, enum enum_vio_io_event event)
#define VIO_DONTWAIT 0
#endif
+#ifndef SOCKET_EAGAIN
+#define SOCKET_EAGAIN SOCKET_EWOULDBLOCK
+#endif
+
/*
returns number of bytes read or -1 in case of an error
*/