From a6b77bc13e95b9689821ee8c2a53d044ced195b0 Mon Sep 17 00:00:00 2001 From: Martin Preen Date: Sat, 7 May 2022 16:52:05 +0100 Subject: Fix build with Solaris compiler --- src/src/hintsdb.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/src/hintsdb.h b/src/src/hintsdb.h index e3e9e98d8..b8e6744d6 100644 --- a/src/src/hintsdb.h +++ b/src/src/hintsdb.h @@ -203,7 +203,11 @@ at DB release 4.3. */ static inline void dbfn_bdb_error_callback(const DB_ENV * dbenv, const char * pfx, const char * msg) -{ log_write(0, LOG_MAIN, "Berkeley DB error: %s", msg); } +{ +#ifndef MACRO_PREDEF +log_write(0, LOG_MAIN, "Berkeley DB error: %s", msg); +#endif +} -- cgit v1.2.3