s3-printing: fix potential print db refcount leak
[ddiss/samba.git] / wscript_build
index 9c60450a9a7e108a6c3e5757c03f6a617f5c6f0c..d955f90dc2ce9b97675d985be11d3debb8d64178 100644 (file)
@@ -20,6 +20,13 @@ bld.AUTOCLEANUP_STALE_FILES()
 # enable building of public headers in the build tree
 bld.env.build_public_headers = 'include/public'
 
+# these are includes which appear in public headers, but with #ifdef conditional
+# 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')