ease mysql compilation on centos 4 #378

Closed
Habbie opened this Issue Apr 26, 2013 · 1 comment

Projects

None yet

1 participant

@Habbie
Member
Habbie commented Apr 26, 2013

diff -ur pdns-3.0/modules/gmysqlbackend/smysql.cc pdns-3.0.new/modules/gmysqlbackend/smysql.cc
--- pdns-3.0/modules/gmysqlbackend/smysql.cc 2011-07-22 13:23:22.000000000 +0200
+++ pdns-3.0.new/modules/gmysqlbackend/smysql.cc 2011-07-22 22:16:07.718879435 +0200
@@ -16,8 +16,10 @@
{
mysql_init(&d_db);
mysql_options(&d_db, MYSQL_READ_DEFAULT_GROUP, "client");
+#if MYSQL_VERSION_ID > 50000
my_bool reconnect = 1;
mysql_options(&d_db, MYSQL_OPT_RECONNECT, &reconnect);
+#endif

#if MYSQL_VERSION_ID > 51000
unsigned int timeout = 10;

@Habbie Habbie was assigned Apr 26, 2013
@Habbie Habbie closed this Apr 26, 2013
@Habbie
Member
Habbie commented Apr 26, 2013

Author: peter
fixed in r2264

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment