summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2009-05-29 19:22:43 +0200
committerGünther Deschner <gd@samba.org>2009-05-29 19:25:44 +0200
commitf451dd482d1220cb520bbf2cc210c458c25dca26 (patch)
tree4a101131ae72ae2d4aecddbd01e1874ba91c0126 /source4
parent3d9e1f605ce6c9fe7240d21a4913459af18ed211 (diff)
downloadsamba-f451dd482d1220cb520bbf2cc210c458c25dca26.tar.gz
samba-f451dd482d1220cb520bbf2cc210c458c25dca26.tar.bz2
samba-f451dd482d1220cb520bbf2cc210c458c25dca26.zip
s4-smbtorture: fix the build w/o libnetapi.
This is surely the wrong fix, but I could not figure out why the samba4 build system adds the init function although the m4 macro had switched off the torture libnetapi subsystem when the headers and libs were not found. Can one of the samba4 build gurus please have a look ? Guenther
Diffstat (limited to 'source4')
-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);