summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source4/torture/torture.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/source4/torture/torture.c b/source4/torture/torture.c
index de4fd591b9..d80acffa0d 100644
--- a/source4/torture/torture.c
+++ b/source4/torture/torture.c
@@ -45,6 +45,12 @@ bool torture_register_suite(struct torture_suite *suite)
return torture_suite_add_suite(torture_root, suite);
}
+#ifndef HAVE_NETAPI_H
+NTSTATUS torture_libnetapi_init(void)
+{
+ return NT_STATUS_OK;
+}
+#endif
_PUBLIC_ int torture_init(void)
{
@@ -57,7 +63,9 @@ _PUBLIC_ int torture_init(void)
extern NTSTATUS torture_rpc_init(void);
extern NTSTATUS torture_smb2_init(void);
extern NTSTATUS torture_net_init(void);
+#ifdef HAVE_NETAPI_H
extern NTSTATUS torture_libnetapi_init(void);
+#endif
extern NTSTATUS torture_raw_init(void);
extern NTSTATUS torture_unix_init(void);
extern NTSTATUS torture_winbind_init(void);