aboutsummaryrefslogtreecommitdiffstats
path: root/net-mgmt
diff options
context:
space:
mode:
authormat <mat@FreeBSD.org>2017-11-06 22:24:56 +0800
committerKoop Mast <kwm@rainbow-runner.nl>2018-02-04 05:53:27 +0800
commitfb4a2d9926769d67528e467e1deaae899b94bad0 (patch)
tree2535a1f11c36e997e570c4b9317efadb764bc182 /net-mgmt
parent4b04adbf879914638746e34fd442e147b36df02a (diff)
downloadfreebsd-ports-gnome-fb4a2d9926769d67528e467e1deaae899b94bad0.tar.gz
freebsd-ports-gnome-fb4a2d9926769d67528e467e1deaae899b94bad0.tar.zst
freebsd-ports-gnome-fb4a2d9926769d67528e467e1deaae899b94bad0.zip
Fix build with MariaDB 10.2.
PR: 223387 Submitted by: brnrd Reported by: fbsd98816551 avksrv org Sponsored by: Absolight
Diffstat (limited to 'net-mgmt')
-rw-r--r--net-mgmt/nagios-plugins/files/patch-plugins_common.h24
1 files changed, 24 insertions, 0 deletions
diff --git a/net-mgmt/nagios-plugins/files/patch-plugins_common.h b/net-mgmt/nagios-plugins/files/patch-plugins_common.h
new file mode 100644
index 000000000000..2a9091fd8e98
--- /dev/null
+++ b/net-mgmt/nagios-plugins/files/patch-plugins_common.h
@@ -0,0 +1,24 @@
+From 930ede8378245eb6bd31eaf1d9103f027df0f7a0 Mon Sep 17 00:00:00 2001
+From: Bernard Spil <brnrd@FreeBSD.org>
+Date: Sun, 5 Nov 2017 10:43:56 +0100
+Subject: [PATCH] plugins/common.h: Set default MySQL port
+
+As of MariaDB 10.2 the headers for client no longer set the
+default MySQL port. Patch fixes this for any version of MariaDB
+or MySQL into the future.
+
+See also: https://bugs.freebsd.org/223387
+--- plugins/common.h.orig 2017-01-19 16:01:31 UTC
++++ plugins/common.h
+@@ -168,6 +168,11 @@
+ # endif
+ #endif
+
++/* MariaDB 10.2 client does not set MYSQL_PORT */
++#ifndef MYSQL_PORT
++# define MYSQL_PORT 3306
++#endif
++
+ /*
+ *
+ * Standard Values