1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-28 01:06:17 +00:00

- Fix connection to mysql server via tcp

PR:             ports/82731
Submitted by:   Vasil Dimov <vd@datamax.bg>
This commit is contained in:
Clement Laforet 2005-07-30 21:48:56 +00:00
parent 67001345a1
commit fe91a23270
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=140499
3 changed files with 27 additions and 0 deletions

View File

@ -7,6 +7,7 @@
PORTNAME= libnss-mysql
PORTVERSION= 1.4
PORTREVISION= 1
CATEGORIES= net
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= libnss-mysql

View File

@ -0,0 +1,15 @@
--- src/mysql.c.orig Tue Jun 28 16:05:53 2005
+++ src/mysql.c Tue Jun 28 16:18:17 2005
@@ -137,10 +137,11 @@
_nss_mysql_set_options (sql_server_t *server)
{
DN ("_nss_mysql_set_options")
+ static const unsigned def_timeout = DEF_TIMEOUT;
DENTER
- mysql_options(&ci.link, MYSQL_OPT_CONNECT_TIMEOUT, DEF_TIMEOUT);
+ mysql_options(&ci.link, MYSQL_OPT_CONNECT_TIMEOUT, &def_timeout);
mysql_options(&ci.link, MYSQL_READ_DEFAULT_GROUP, "libnss-mysql");
DEXIT

View File

@ -0,0 +1,11 @@
--- src/nss_mysql.h.orig Tue Jun 28 16:06:14 2005
+++ src/nss_mysql.h Tue Jun 28 16:17:30 2005
@@ -70,7 +70,7 @@
#define MAX_QUERY_ATTEMPTS 3 /* # of query retries */
/* Default initializers */
-#define DEF_TIMEOUT "3"
+#define DEF_TIMEOUT 3
#ifdef DEBUG
void _nss_mysql_debug (char *fmt, ...);