summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2011-03-03 17:22:38 +1100
committerAndrew Tridgell <tridge@samba.org>2011-03-15 12:22:20 +1100
commitf303db5bfd627b8764f031671d95d69ad271674c (patch)
treeb1538cde421417d539adc80c426da341a18bce9e
parent827d020f7e51b179e7e629602ee4d02ba610bde5 (diff)
downloadsamba-f303db5bfd627b8764f031671d95d69ad271674c.tar.gz
samba-f303db5bfd627b8764f031671d95d69ad271674c.tar.bz2
samba-f303db5bfd627b8764f031671d95d69ad271674c.zip
build: force _SAMBA_BUILD_==4 to be true in public headers
for s4 public headers, this is always true
-rw-r--r--wscript_build3
1 files changed, 3 insertions, 0 deletions
diff --git a/wscript_build b/wscript_build
index 22cd7a0350..d955f90dc2 100644
--- a/wscript_build
+++ b/wscript_build
@@ -24,6 +24,9 @@ bld.env.build_public_headers = 'include/public'
# compilation, so they are safe
bld.env.public_headers_skip = ['param/param_proto.h', 'lib/ldb_compat.h']
+# force headers to use SAMBA4 rules
+bld.env.public_headers_replace = { '#if _SAMBA_BUILD_ == 4' : '#if 1 /* _SAMBA_BUILD_ == 4 */' }
+
samba_version.load_version(bld.env)
bld.SAMBA_MKVERSION('version.h')