freebsd-ports/net-mgmt/monitoring-plugins/files/patch-plugins_common.h
Mathieu Arnold fd08254023 Fix build with MariaDB 10.2.
PR:		223424
Submitted by:	brnrd
Reported by:	Matthias Fechner
Sponsored by:	Absolight
2017-11-07 15:48:11 +00:00

14 lines
242 B
C

--- plugins/common.h.orig 2016-11-29 08:45:08 UTC
+++ 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