summaryrefslogtreecommitdiff
path: root/include/violite.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/violite.h')
-rw-r--r--include/violite.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/violite.h b/include/violite.h
index 28e3ca08b0a..b823e62b2e1 100644
--- a/include/violite.h
+++ b/include/violite.h
@@ -74,11 +74,11 @@ struct vio_keepalive_opts
Vio* vio_new(my_socket sd, enum enum_vio_type type, uint flags);
Vio* mysql_socket_vio_new(MYSQL_SOCKET mysql_socket, enum enum_vio_type type, uint flags);
-#ifdef __WIN__
+#ifdef _WIN32
Vio* vio_new_win32pipe(HANDLE hPipe);
#else
#define HANDLE void *
-#endif /* __WIN__ */
+#endif /* _WIN32 */
void vio_delete(Vio* vio);
int vio_close(Vio* vio);
@@ -249,7 +249,6 @@ struct st_vio
char *read_pos; /* start of unfetched data in the
read buffer */
char *read_end; /* end of unfetched data */
- struct mysql_async_context *async_context; /* For non-blocking API */
int read_timeout; /* Timeout value (ms) for read ops. */
int write_timeout; /* Timeout value (ms) for write ops. */
/* function pointers. They are similar for socket/SSL/whatever */
@@ -279,6 +278,7 @@ struct st_vio
HANDLE hPipe;
OVERLAPPED overlapped;
int shutdown_flag;
+ void *tp_ctx; /* threadpool context */
#endif
};
#endif /* vio_violite_h_ */