ntdb: put it back into the build.
[obnox/samba/samba-obnox.git] / testsuite / headers / wscript_build
index f83538ef090cf9f5daa0eaeb8cf9516a6f7105ef..635c8641fc65edd33ea15eae403b4a992e8162b7 100644 (file)
@@ -8,6 +8,11 @@ def build_test_headers(task):
     f.write('/* generated header test */\n')
     hlist = task.env.public_headers_list[:]
     hlist.sort()
+    # We need to include tdb.h before ntdb.h.  It's the rules!
+    if 'tdb.h' in hlist and 'ntdb.h' in hlist:
+        hlist.remove('ntdb.h')
+        hlist.append('ntdb.h')
+
     for h in hlist:
         f.write('#include "%s"\n' % os.path.normpath(h))
     f.close()