autobuild: Remove ntdb target
[samba.git] / testsuite / headers / wscript_build
index d0625a0fcb89045a68f944aa6a3bb9138da7c2ec..f612ad92615dc5dcdaf4866a32719beb4cdeb75e 100644 (file)
@@ -8,6 +8,10 @@ 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))