summaryrefslogtreecommitdiff
path: root/sql/sql_connect.h
diff options
context:
space:
mode:
Diffstat (limited to 'sql/sql_connect.h')
-rw-r--r--sql/sql_connect.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/sql/sql_connect.h b/sql/sql_connect.h
index c87dc4e6377..82ab4423b37 100644
--- a/sql/sql_connect.h
+++ b/sql/sql_connect.h
@@ -16,7 +16,7 @@
#ifndef SQL_CONNECT_INCLUDED
#define SQL_CONNECT_INCLUDED
-#include "my_sys.h" /* pthread_handler_t */
+#include <my_sys.h> /* pthread_handler_t */
#include "mysql_com.h" /* enum_server_command */
#include "structs.h"
#include <mysql/psi/mysql_socket.h>
@@ -57,7 +57,6 @@ public:
class THD;
-typedef struct st_lex_user LEX_USER;
typedef struct user_conn USER_CONN;
void init_max_user_conn(void);
@@ -86,6 +85,10 @@ bool thd_init_client_charset(THD *thd, uint cs_number);
bool setup_connection_thread_globals(THD *thd);
bool thd_prepare_connection(THD *thd);
bool thd_is_connection_alive(THD *thd);
+int thd_set_peer_addr(THD *thd, sockaddr_storage *addr,
+ const char *ip, uint port,
+ bool check_proxy_networks,
+ uint *host_errors);
bool login_connection(THD *thd);
void prepare_new_connection_state(THD* thd);