diff options
author | Bernard Spil <Sp1l@users.noreply.github.com> | 2017-11-06 17:31:44 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-11-06 17:31:44 +0100 |
commit | 399cc141526ee77e1befce469f1fab40645f299d (patch) | |
tree | ab68dbebb334d74dedfb6693feb083b94b4e4845 /plugins | |
parent | 9661ee74885834f7b69ab0874c4e65bed0b871c9 (diff) | |
download | monitoring-plugins-399cc141526ee77e1befce469f1fab40645f299d.tar.gz |
Fix build issue with MariaDB 10.2
As of 10.2 MariaDB no longer defines MYSQL_PORT.
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/common.h | 5 |
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 @@ * */ +/* MariaDB 10.2 client does not set MYSQL_PORT */ +#ifndef MYSQL_PORT +# define MYSQL_PORT 3306 +#endif + enum { OK = 0, ERROR = -1 |