Fix build with Solaris compiler
authorMartin Preen <preen@informatik.uni-freiburg.de>
Sat, 7 May 2022 15:52:05 +0000 (16:52 +0100)
committerJeremy Harris <jgh146exb@wizmail.org>
Sat, 7 May 2022 15:52:47 +0000 (16:52 +0100)
src/src/hintsdb.h

index e3e9e98d841e5b0ff876287311e7ab1b5b840a0f..b8e6744d688afacc945217be793433dcf98c7a04 100644 (file)
@@ -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
+}