summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBernard Spil <Sp1l@users.noreply.github.com>2017-11-06 17:31:44 +0100
committerJan Wagner <waja@cyconet.org>2019-01-18 21:44:08 +0100
commitac0437ff896ba9ce2549b2d2ec3de146a886f08a (patch)
treeafa5ef43148679f1d617b56609bdab082950c5bb
parent8526d65d47195d76d78f0132115dd22ebe8ff557 (diff)
downloadmonitoring-plugins-ac0437ff896ba9ce2549b2d2ec3de146a886f08a.tar.gz
Fix build issue with MariaDB 10.2
As of 10.2 MariaDB no longer defines MYSQL_PORT.
-rw-r--r--plugins/common.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/plugins/common.h b/plugins/common.h
index 8719b502..6bf4fca4 100644
--- a/plugins/common.h
+++ b/plugins/common.h
@@ -174,6 +174,11 @@
174 * 174 *
175 */ 175 */
176 176
177/* MariaDB 10.2 client does not set MYSQL_PORT */
178#ifndef MYSQL_PORT
179# define MYSQL_PORT 3306
180#endif
181
177enum { 182enum {
178 OK = 0, 183 OK = 0,
179 ERROR = -1 184 ERROR = -1