1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

mysql: fix compilation with libmariadb-dev, but no libmysqlclient-dev installed

This commit is contained in:
Delyan Angelov 2021-10-22 16:44:02 +03:00
parent 76ff708cf8
commit 0401b5ece0
No known key found for this signature in database
GPG Key ID: 66886C0F12D595ED

View File

@ -4,8 +4,8 @@ module mysql
$if $pkgconfig('mysqlclient') {
#pkgconfig mysqlclient
#include <mysql/mysql.h> # Please install the libmysqlclient-dev development headers
} $else {
#pkgconfig mariadb
#include <mariadb/mysql.h> # Please install the libmariadb-dev development headers
}
#include <mysql/mysql.h> # Please install the mysqlclient development headers