Date: Mon, 6 Nov 2017 14:24:56 +0000 (UTC) From: Mathieu Arnold <mat@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r453621 - head/net-mgmt/nagios-plugins/files Message-ID: <201711061424.vA6EOuQS011344@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: mat Date: Mon Nov 6 14:24:56 2017 New Revision: 453621 URL: https://svnweb.freebsd.org/changeset/ports/453621 Log: Fix build with MariaDB 10.2. PR: 223387 Submitted by: brnrd Reported by: fbsd98816551 avksrv org Sponsored by: Absolight Added: head/net-mgmt/nagios-plugins/files/patch-plugins_common.h (contents, props changed) Added: head/net-mgmt/nagios-plugins/files/patch-plugins_common.h ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/net-mgmt/nagios-plugins/files/patch-plugins_common.h Mon Nov 6 14:24:56 2017 (r453621) @@ -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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201711061424.vA6EOuQS011344>