diff options
author | Amitay Isaacs <amitay@gmail.com> | 2012-02-21 15:29:17 +1030 |
---|---|---|
committer | Rusty Russell <rusty@rustcorp.com.au> | 2012-02-21 15:29:17 +1030 |
commit | a63d731ae05af78bdc33db58880387169429753e (patch) | |
tree | d9a982ea780c7bd87edf9624d19f22a483e3d1df /lib/tdb2/private.h | |
parent | e6901fa35069e234044c94b87ac9df4064b31d1c (diff) | |
download | samba-a63d731ae05af78bdc33db58880387169429753e.tar.gz samba-a63d731ae05af78bdc33db58880387169429753e.tar.bz2 samba-a63d731ae05af78bdc33db58880387169429753e.zip |
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 <rusty@rustcorp.com.au>
Diffstat (limited to 'lib/tdb2/private.h')
-rw-r--r-- | lib/tdb2/private.h | 5 |
1 files changed, 5 insertions, 0 deletions
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 <http://www.gnu.org/licenses/>. */ +#include "config.h" +#ifndef HAVE_CCAN +#error You need ccan to build tdb2! +#endif #include "tdb2.h" +#include <ccan/compiler/compiler.h> #include <ccan/likely/likely.h> #include <ccan/endian/endian.h> |