diff --git a/net/libnss-mysql/Makefile b/net/libnss-mysql/Makefile index 642dc9a2bafd..d8deb0506b1a 100644 --- a/net/libnss-mysql/Makefile +++ b/net/libnss-mysql/Makefile @@ -7,6 +7,7 @@ PORTNAME= libnss-mysql PORTVERSION= 1.4 +PORTREVISION= 1 CATEGORIES= net MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} MASTER_SITE_SUBDIR= libnss-mysql diff --git a/net/libnss-mysql/files/patch-src::mysql.c b/net/libnss-mysql/files/patch-src::mysql.c new file mode 100644 index 000000000000..5b1b3eb1934f --- /dev/null +++ b/net/libnss-mysql/files/patch-src::mysql.c @@ -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 diff --git a/net/libnss-mysql/files/patch-src::nss_mysql.h b/net/libnss-mysql/files/patch-src::nss_mysql.h new file mode 100644 index 000000000000..05277bbcb1fd --- /dev/null +++ b/net/libnss-mysql/files/patch-src::nss_mysql.h @@ -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, ...);