aboutsummaryrefslogtreecommitdiff
path: root/src/rpcmining.cpp
diff options
context:
space:
mode:
authorThomas Holenstein <thomas.holenstein@gmail.com>2013-12-18 20:46:43 +0100
committerWladimir J. van der Laan <laanwj@gmail.com>2013-12-19 10:46:41 +0100
commitdf840de5daef60a253e4d84d14ff72bb7188a6c0 (patch)
treec9953453f4edcce02a5d18685ffd66e6e489693b /src/rpcmining.cpp
parent285cf7a1a6cb660b57cbc75f63e49736b51d705e (diff)
Make bitcoin compile without wallet if "db_cxx.h" is not present
Moved includes of "db.h" into #ifdef ENABLE_WALLET blocks or remove them.
Diffstat (limited to 'src/rpcmining.cpp')
-rw-r--r--src/rpcmining.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/rpcmining.cpp b/src/rpcmining.cpp
index b81433120e..1a8462fdea 100644
--- a/src/rpcmining.cpp
+++ b/src/rpcmining.cpp
@@ -5,13 +5,14 @@
#include "rpcserver.h"
#include "chainparams.h"
-#include "db.h"
#include "init.h"
#include "net.h"
#include "main.h"
#include "miner.h"
+#ifdef ENABLE_WALLET
+#include "db.h"
#include "wallet.h"
-
+#endif
#include <stdint.h>
#include "json/json_spirit_utils.h"