1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-29 05:21:33 +03:00

Fix to make Windows compilation smoother

This commit is contained in:
hf@deer.(none)
2004-05-26 21:40:27 +05:00
parent 9a5dafba83
commit 78f58ff384
13 changed files with 65 additions and 43 deletions

View File

@ -46,6 +46,9 @@
#define INADDR_NONE -1
#endif
extern ulong net_buffer_length;
extern ulong max_allowed_packet;
static my_bool mysql_client_init=0;
uint mysql_port=0;
my_string mysql_unix_port=0;
@ -722,6 +725,15 @@ read_one_row(MYSQL *mysql,uint fields,MYSQL_ROW row, ulong *lengths)
return 0;
}
static MYSQL_PARAMETERS mysql_internal_parameters=
{&max_allowed_packet, &net_buffer_length};
MYSQL_PARAMETERS *STDCALL mysql_get_parameters()
{
return &mysql_internal_parameters;
}
/****************************************************************************
** Init MySQL structure or allocate one
****************************************************************************/