diff --git a/portability/toku_assert.cc b/portability/toku_assert.cc
index 2b635e68857a07aa8e7f46255cda960678f250b7..f7e4c496fadda7332004aafbfd4b49024f9eea5b 100644
--- a/portability/toku_assert.cc
+++ b/portability/toku_assert.cc
@@ -93,8 +93,6 @@ PATENT RIGHTS GRANT:
 #include <toku_portability.h>
 #include "toku_assert.h"
 
-#include <db.h>
-
 #include <stdlib.h>
 #include <stdio.h>
 #if defined(HAVE_MALLOC_H)
@@ -140,6 +138,7 @@ void toku_assert_set_fpointers(int (*toku_maybe_get_engine_status_text_pointer)(
 bool toku_gdb_dump_on_assert = false;
 void (*do_assert_hook)(void) = NULL;
 
+void db_env_do_backtrace(void);  // also declared in db.h for consumers of that API
 void db_env_do_backtrace(void) {
     // backtrace
 #if !TOKU_WINDOWS