From: Antony Dovgal Date: Fri, 21 Aug 2009 07:46:43 +0000 (+0000) Subject: fix build broken by the fix for bug #49306 X-Git-Tag: php-5.3.1RC1~77 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=193bbbbd5960eb16e6c5abae6d42b776bc4547f0;p=php fix build broken by the fix for bug #49306 --- diff --git a/ext/pdo_mysql/mysql_driver.c b/ext/pdo_mysql/mysql_driver.c index 39bd942a5e..2a64c0e475 100755 --- a/ext/pdo_mysql/mysql_driver.c +++ b/ext/pdo_mysql/mysql_driver.c @@ -551,11 +551,12 @@ static struct pdo_dbh_methods mysql_methods = { pdo_mysql_check_liveness }; /* }}} */ - -#ifdef PHP_WIN32 -# define MYSQL_UNIX_ADDR "MySQL" -#else -# define MYSQL_UNIX_ADDR PDO_MYSQL_G(default_socket) +#ifdef PDO_USE_MYSQLND +# ifdef PHP_WIN32 +# define MYSQL_UNIX_ADDR "MySQL" +# else +# define MYSQL_UNIX_ADDR PDO_MYSQL_G(default_socket) +# endif #endif /* {{{ pdo_mysql_handle_factory */