From a6a543373c048e0df2f54037c70a67eb225e6a96 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20=27felixd=27=20Wojciechowski?= Date: Mon, 24 Dec 2018 04:00:36 +0100 Subject: [PATCH] MariaDB change for Alpine Linux builds Fixes 1 of 2 issues from #176 --- contrib/hbmysql/mysql.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/contrib/hbmysql/mysql.c b/contrib/hbmysql/mysql.c index 0c7df1a313..f5205b337c 100644 --- a/contrib/hbmysql/mysql.c +++ b/contrib/hbmysql/mysql.c @@ -58,6 +58,15 @@ #include "mysql.h" +/* NOTE: Patricio Díaz (padiazg) suggested this change for Alpine Linux builds + where MariaDB is only avaiable. +*/ +#if !defined( MYSQL_PORT ) + #if defined( MARIADB_PORT ) + #define MYSQL_PORT MARIADB_PORT + #endif +#endif + /* NOTE: OS/2 EMX port of MySQL needs libmysqlclient.a from 3.21.33b build which has ST and MT versions of client library. I'm using ST version since Harbour is single threaded.