From ac0437ff896ba9ce2549b2d2ec3de146a886f08a Mon Sep 17 00:00:00 2001
From: Bernard Spil <Sp1l@users.noreply.github.com>
Date: Mon, 6 Nov 2017 17:31:44 +0100
Subject: Fix build issue with MariaDB 10.2

As of 10.2 MariaDB no longer defines MYSQL_PORT.

diff --git a/plugins/common.h b/plugins/common.h
index 8719b50..6bf4fca 100644
--- a/plugins/common.h
+++ b/plugins/common.h
@@ -174,6 +174,11 @@
  *
  */
 
+/* MariaDB 10.2 client does not set MYSQL_PORT */
+#ifndef MYSQL_PORT
+#  define MYSQL_PORT 3306
+#endif
+
 enum {
 	OK = 0,
 	ERROR = -1
-- 
cgit v0.10-9-g596f

