diff options
| author | Vladislav Vaintroub <wlad@montyprogram.com> | 2012-08-30 11:36:24 +0200 |
|---|---|---|
| committer | Vladislav Vaintroub <wlad@montyprogram.com> | 2012-08-30 11:36:24 +0200 |
| commit | ae325ec6ce3998b3dd38fc2ad7763857cd4c140f (patch) | |
| tree | 957911b8185c51f0ad2caf43f2124552bca6db9f /sql/threadpool_win.cc | |
| parent | d99b8004e6b46e2a1b321bf50825254bf841cddb (diff) | |
| download | mariadb-git-ae325ec6ce3998b3dd38fc2ad7763857cd4c140f.tar.gz | |
Compile 10.0 on Windows
Diffstat (limited to 'sql/threadpool_win.cc')
| -rw-r--r-- | sql/threadpool_win.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sql/threadpool_win.cc b/sql/threadpool_win.cc index 6359f81cd2b..7bf4d98d16d 100644 --- a/sql/threadpool_win.cc +++ b/sql/threadpool_win.cc @@ -255,7 +255,7 @@ int init_io(connection_t *connection, THD *thd) { case VIO_TYPE_SSL: case VIO_TYPE_TCPIP: - connection->handle= (HANDLE)vio->sd; + connection->handle= (HANDLE)mysql_socket_getfd(connection->thd->net.vio->mysql_socket); break; case VIO_TYPE_NAMEDPIPE: connection->handle= (HANDLE)vio->hPipe; @@ -342,7 +342,7 @@ int start_io(connection_t *connection, PTP_CALLBACK_INSTANCE instance) if (vio->type == VIO_TYPE_TCPIP || vio->type == VIO_TYPE_SSL) { /* Start async io (sockets). */ - if (WSARecv(vio->sd , &buf, 1, &num_bytes, &flags, + if (WSARecv(mysql_socket_getfd(vio->mysql_socket) , &buf, 1, &num_bytes, &flags, overlapped, NULL) == 0) { retval= last_error= 0; |
