Index: tdb/tdbtool.c
===================================================================
--- tdb.orig/tdbtool.c	2007-04-04 20:39:28.000000000 -0400
+++ tdb/tdbtool.c	2007-04-04 20:40:10.000000000 -0400
@@ -21,10 +21,21 @@
    Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
 */
 
-#include "replace.h"
-#include "system/locale.h"
-#include "system/time.h"
-#include "system/filesys.h"
+#include <errno.h>
+#include <stdlib.h>
+#include <stdio.h>
+#include <fcntl.h>
+#include <unistd.h>
+#include <string.h>
+#include <fcntl.h>
+#include <time.h>
+#include <sys/mman.h>
+#include <sys/stat.h>
+#include <sys/time.h>
+#include <ctype.h>
+#include <signal.h>
+#include <stdarg.h>
+
 #include "tdb.h"
 
 static int do_command(void);
