git://git.exim.org
/
exim.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
8de0078
)
MySQL: fix build on Fedora 27, where MariaDB version information has become unavailable
author
Jeremy Harris
<jgh146exb@wizmail.org>
Tue, 10 Oct 2017 20:39:54 +0000
(21:39 +0100)
committer
Jeremy Harris
<jgh146exb@wizmail.org>
Tue, 10 Oct 2017 20:39:54 +0000
(21:39 +0100)
src/src/lookups/mysql.c
patch
|
blob
|
history
diff --git
a/src/src/lookups/mysql.c
b/src/src/lookups/mysql.c
index ddc7dc8414484d29962e475e3ed9e3d10a0fc378..40b27d5ba6a6997bdb1dd0521ccd685d171a7b8e 100644
(file)
--- a/
src/src/lookups/mysql.c
+++ b/
src/src/lookups/mysql.c
@@
-433,10
+433,15
@@
return quoted;
void
mysql_version_report(FILE *f)
{
void
mysql_version_report(FILE *f)
{
-fprintf(f, "Library version: MySQL: Compile: %s [%s]\n"
- " Runtime: %s\n",
- MYSQL_SERVER_VERSION, MYSQL_COMPILATION_COMMENT,
- mysql_get_client_info());
+#ifdef MYSQL_SERVER_VERSION
+fprintf(f, "Library version: MySQL: Compile: %s [%s]\n",
+ MYSQL_SERVER_VERSION, MYSQL_COMPILATION_COMMENT);
+#else
+fprintf(f, "Library version: MySQL: Compile: (unknown)\n");
+#endif
+
+fprintf(f, " Runtime: %s\n", mysql_get_client_info());
+
#ifdef DYNLOOKUP
fprintf(f, " Exim version %s\n", EXIM_VERSION_STR);
#endif
#ifdef DYNLOOKUP
fprintf(f, " Exim version %s\n", EXIM_VERSION_STR);
#endif