* db.hh shouldn't depend on the Berkeley DB headers.

This commit is contained in:
Eelco Dolstra 2006-03-01 17:44:28 +00:00
parent 1bdceb421f
commit 74166f2f44
5 changed files with 13 additions and 3 deletions

View File

@ -1,4 +1,5 @@
#include <map>
#include <iostream>
#include <sstream>
#include <boost/shared_ptr.hpp>
#include <boost/weak_ptr.hpp>
@ -922,7 +923,7 @@ DerivationGoal::HookReply DerivationGoal::tryBuildHook()
(worker.canBuildMore() ? (string) "1" : "0").c_str(),
thisSystem.c_str(),
drv.platform.c_str(),
drvPath.c_str(), 0);
drvPath.c_str(), NULL);
throw SysError(format("executing `%1%'") % buildHook);

View File

@ -5,6 +5,8 @@
#include <memory>
#include <db_cxx.h>
#include "db.hh"
#include "util.hh"
#include "pathlocks.hh"

View File

@ -5,13 +5,17 @@
#include <list>
#include <map>
#include <db_cxx.h>
#include "util.hh"
using namespace std;
/* Defined externally. */
class DbTxn;
class DbEnv;
class Db;
class Database;

View File

@ -13,6 +13,7 @@
#include <cerrno>
#include <ctime>
#include <algorithm>
#include <iostream>
#include <unistd.h>

View File

@ -1,3 +1,5 @@
#include <iostream>
#include "dotgraph.hh"
#include "build.hh"