summaryrefslogtreecommitdiff
blob: 8546edc1521d88115affed5980496ee9564904ff (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
--- a/contrib/dlz/drivers/dlz_mysql_driver.c
+++ b/contrib/dlz/drivers/dlz_mysql_driver.c
@@ -789,8 +789,11 @@ mysql_create(const char *dlzname, unsigned int argc, char *argv[],
 	char *endp;
 	int j;
 	unsigned int flags = 0;
+#if MYSQL_VERSION_ID >= 80000
+	typedef bool my_bool;  // Workaround to make library work with MySQL client 8.0 as well as earlier versions
+#endif
 #if MYSQL_VERSION_ID >= 50000
-        my_bool auto_reconnect = 1;
+	my_bool auto_reconnect = 1;
 #endif
 
 	UNUSED(driverarg);