From f19386dd831ec102476d0d990d97f459470a4d93 Mon Sep 17 00:00:00 2001 From: adustman Date: Mon, 30 Mar 2009 23:01:58 +0000 Subject: --- MySQLdb/_mysql.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/MySQLdb/_mysql.c b/MySQLdb/_mysql.c index 6fcc141..1683c1d 100644 --- a/MySQLdb/_mysql.c +++ b/MySQLdb/_mysql.c @@ -28,7 +28,8 @@ PERFORMANCE OF THIS SOFTWARE. #include "pymemcompat.h" #include "structmember.h" -#if defined(_WIN32) || defined(_WIN64) || defined(__WIN32__) || defined(WIN32) || defined(MS_WIN32) +#if defined(MS_WINDOWS) +#include #include #include #else @@ -480,7 +481,7 @@ _mysql_ConnectionObject_Initialize( #endif char *host = NULL, *user = NULL, *passwd = NULL, *db = NULL, *unix_socket = NULL; - unsigned int port = MYSQL_PORT; + unsigned int port = 0; unsigned int client_flag = 0; static char *kwlist[] = { "host", "user", "passwd", "db", "port", "unix_socket", "conv", @@ -508,7 +509,8 @@ _mysql_ConnectionObject_Initialize( &init_command, &read_default_file, &read_default_group, &client_flag, &ssl, - &local_infile + &local_infile /* DO NOT PATCH FOR RECONNECT, IDIOTS + IF YOU DO THIS, I WILL NOT SUPPORT YOUR PACKAGES. */ )) return -1; -- cgit v1.2.1