summaryrefslogtreecommitdiff
path: root/dbd
diff options
context:
space:
mode:
Diffstat (limited to 'dbd')
-rw-r--r--dbd/apr_dbd_mysql.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/dbd/apr_dbd_mysql.c b/dbd/apr_dbd_mysql.c
index 4b2790aac..df4f6e3b0 100644
--- a/dbd/apr_dbd_mysql.c
+++ b/dbd/apr_dbd_mysql.c
@@ -1131,7 +1131,9 @@ static apr_dbd_t *dbd_mysql_open(apr_pool_t *pool, const char *params,
{NULL, NULL}
};
unsigned int port = 0;
+#if MYSQL_VERSION_ID >= 50013
unsigned int timeout = 0;
+#endif
apr_dbd_t *sql = apr_pcalloc(pool, sizeof(apr_dbd_t));
sql->fldsz = FIELDSIZE;
sql->conn = mysql_init(sql->conn);