ntdb: Try to fix the build on Solaris which does not have err
authorAndrew Bartlett <abartlet@samba.org>
Sun, 23 Sep 2012 03:20:45 +0000 (13:20 +1000)
committerAndrew Bartlett <abartlet@samba.org>
Sun, 23 Sep 2012 04:31:01 +0000 (14:31 +1000)
lib/ccan/wscript
lib/ntdb/wscript
lib/replace/replace-testsuite.h [new file with mode: 0644]

index be5eab23dc8a4ee6143c07a832f225fef06835d9..334f8fe4d08665be9f56b7699033a9af11785f99 100644 (file)
@@ -147,11 +147,11 @@ def build(bld):
     ccan_module(bld, 'endian')
     ccan_module(bld, 'likely', 'ccan-str')
     ccan_module(bld, 'typesafe_cb')
+    ccan_module(bld, 'err', 'ccan-compiler')
 
     # Failtest pulls in a lot of stuff, and it's only for unit tests.
     if bld.env.DEVELOPER_MODE:
         ccan_module(bld, 'container_of', 'ccan-check_type')
-        ccan_module(bld, 'err', 'ccan-compiler')
         ccan_module(bld, 'htable', 'ccan-compiler')
         ccan_module(bld, 'list', 'ccan-container_of')
         ccan_module(bld, 'time')
index 39802dbf3a3e7f72ce1e9e03d07b6976d8848d43..1a4b02bb25496a1ee009a7c262c6d73f7a14465e 100644 (file)
@@ -155,7 +155,7 @@ def build(bld):
 
         bld.SAMBA_BINARY('ntdbtorture',
                          'tools/ntdbtorture.c',
-                         deps='ntdb',
+                         deps='ntdb ccan-err',
                          install=False)
 
         bld.SAMBA_BINARY('ntdbtool',
diff --git a/lib/replace/replace-testsuite.h b/lib/replace/replace-testsuite.h
new file mode 100644 (file)
index 0000000..a522853
--- /dev/null
@@ -0,0 +1,13 @@
+#ifndef __LIB_REPLACE_REPLACE_TEST_H__
+#define __LIB_REPLACE_REPLACE_TEST_H__
+
+#include <stdbool.h>
+struct torture_context;
+
+bool torture_local_replace(struct torture_context *ctx);
+int libreplace_test_strptime(void);
+int test_readdir_os2_delete(void);
+int getifaddrs_test(void);
+
+#endif /* __LIB_REPLACE_REPLACE_TEST_H__ */
+