From a63d731ae05af78bdc33db58880387169429753e Mon Sep 17 00:00:00 2001 From: Amitay Isaacs Date: Tue, 21 Feb 2012 15:29:17 +1030 Subject: lib/tdb2: Do not include config.h in (to-be) public library, use replace. Like tdb1, it's the caller's responsibility to set up various config options (eg. by #include "config.h") before including the public header. We use HAVE_CCAN for including the (private) CCAN headers, otherwise dummy macros are used. Signed-off-by: Rusty Russell --- lib/tdb2/private.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'lib/tdb2/private.h') diff --git a/lib/tdb2/private.h b/lib/tdb2/private.h index 91d3ca0933..31790bc335 100644 --- a/lib/tdb2/private.h +++ b/lib/tdb2/private.h @@ -18,7 +18,12 @@ License along with this library; if not, see . */ +#include "config.h" +#ifndef HAVE_CCAN +#error You need ccan to build tdb2! +#endif #include "tdb2.h" +#include #include #include -- cgit