summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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')