[monitoring-plugins] Fix build issue with MariaDB 10.2
Jan Wagner
git at monitoring-plugins.org
Sun Jan 20 21:50:15 CET 2019
Module: monitoring-plugins
Branch: maint-2.2
Commit: ac0437ff896ba9ce2549b2d2ec3de146a886f08a
Author: Bernard Spil <Sp1l at users.noreply.github.com>
Committer: Jan Wagner <waja at cyconet.org>
Date: Mon Nov 6 17:31:44 2017 +0100
URL: https://www.monitoring-plugins.org/repositories/monitoring-plugins/commit/?id=ac0437f
Fix build issue with MariaDB 10.2
As of 10.2 MariaDB no longer defines MYSQL_PORT.
---
plugins/common.h | 5 +++++
1 file changed, 5 insertions(+)
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
More information about the Commits
mailing list