From 40daef4c3d822a28467ff521efca6a55a0370050 Mon Sep 17 00:00:00 2001 From: =?utf8?q?G=C3=BCnther=20Deschner?= Date: Thu, 24 Jan 2008 17:39:29 +0100 Subject: [PATCH] Fix winbindd build w/o ADS. Guenther --- source/winbindd/winbindd_ndr.c | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/source/winbindd/winbindd_ndr.c b/source/winbindd/winbindd_ndr.c index 145d11913db..842c915c5fa 100644 --- a/source/winbindd/winbindd_ndr.c +++ b/source/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) { -- 2.11.4.GIT