summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/src/hintsdb.h6
1 files changed, 5 insertions, 1 deletions
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
+}