From 6b1c45a5c2e5e3f0a3e2b7772cd55079ebe3133e Mon Sep 17 00:00:00 2001 From: Günther Deschner Date: Thu, 24 Jan 2008 17:39:29 +0100 Subject: Fix winbindd build w/o ADS. Guenther (This used to be commit 40daef4c3d822a28467ff521efca6a55a0370050) --- source3/winbindd/winbindd_ndr.c | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'source3') diff --git a/source3/winbindd/winbindd_ndr.c b/source3/winbindd/winbindd_ndr.c index 145d11913d..842c915c5f 100644 --- a/source3/winbindd/winbindd_ndr.c +++ b/source3/winbindd/winbindd_ndr.c @@ -74,7 +74,9 @@ void ndr_print_winbindd_methods(struct ndr_print *ndr, const char *name, const struct winbindd_methods *r) { +#ifdef HAVE_ADS extern struct winbindd_methods ads_methods; +#endif extern struct winbindd_methods msrpc_methods; extern struct winbindd_methods passdb_methods; extern struct winbindd_methods reconnect_methods; @@ -89,10 +91,12 @@ void ndr_print_winbindd_methods(struct ndr_print *ndr, return; } - if (r == &ads_methods) { - ndr_print_string(ndr, name, "ads_methods"); - } else if (r == &msrpc_methods) { + if (r == &msrpc_methods) { ndr_print_string(ndr, name, "msrpc_methods"); +#ifdef HAVE_ADS + } else if (r == &ads_methods) { + ndr_print_string(ndr, name, "ads_methods"); +#endif } else if (r == &passdb_methods) { ndr_print_string(ndr, name, "passdb_methods"); } else if (r == &reconnect_methods) { -- cgit