From 925f3545404ba40ed1f5acc1ea26012d3f0cc807 Mon Sep 17 00:00:00 2001
From: Leif Walsh <leif.walsh@gmail.com>
Date: Mon, 3 Mar 2014 15:16:17 -0500
Subject: [PATCH] compilation fix Tokutek/mongo#987

---
 portability/toku_assert.cc | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/portability/toku_assert.cc b/portability/toku_assert.cc
index e5cdb6f7857..c519eb4c76b 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
-- 
2.30.9