summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRusty Russell <rusty@rustcorp.com.au>2012-02-21 15:29:06 +1030
committerRusty Russell <rusty@rustcorp.com.au>2012-02-21 15:29:06 +1030
commitfb8cf568caf43615f7a06a623209a0fade629a35 (patch)
treedd4c2960fd6ee970dd827336cec5b6fd9e391972
parent0528cb5f3a15b72dcb34ece21a3ffb3e7b8d6eb9 (diff)
downloadsamba-fb8cf568caf43615f7a06a623209a0fade629a35.tar.gz
samba-fb8cf568caf43615f7a06a623209a0fade629a35.tar.bz2
samba-fb8cf568caf43615f7a06a623209a0fade629a35.zip
lib/ccan: define HAVE_CCAN.
This allows public headers to use CCAN if available, and dummy macros if not (eg. tdb2). Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
-rw-r--r--lib/ccan/wscript1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/ccan/wscript b/lib/ccan/wscript
index 9daf091e5b..59fe93af8e 100644
--- a/lib/ccan/wscript
+++ b/lib/ccan/wscript
@@ -3,6 +3,7 @@
import Logs, sys
def configure(conf):
+ conf.DEFINE('HAVE_CCAN', 1)
# FIXME: if they don't have -Werror, these will all fail. But they
# probably will anyway...
conf.CHECK_CODE('int __attribute__((cold)) func(int x) { return x; }',