summaryrefslogtreecommitdiff
path: root/libmysqld/libmysqld.c
diff options
context:
space:
mode:
authorhf@deer.(none) <>2004-05-26 21:40:27 +0500
committerhf@deer.(none) <>2004-05-26 21:40:27 +0500
commit78f58ff38494c6483fd63e9f9d8824b34ebdbc44 (patch)
treeda6efb78f98da49c9e60050f45067be7a2860d8a /libmysqld/libmysqld.c
parent9a5dafba83c9135656727ab9e3236703fe49361d (diff)
downloadmariadb-git-78f58ff38494c6483fd63e9f9d8824b34ebdbc44.tar.gz
Fix to make Windows compilation smoother
Diffstat (limited to 'libmysqld/libmysqld.c')
-rw-r--r--libmysqld/libmysqld.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/libmysqld/libmysqld.c b/libmysqld/libmysqld.c
index 2e8cd2a4861..6f60e4c4fbc 100644
--- a/libmysqld/libmysqld.c
+++ b/libmysqld/libmysqld.c
@@ -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
****************************************************************************/