From d3dd529c23483313311b9e095502743cbd311ab8 Mon Sep 17 00:00:00 2001 From: Andi Gutmans Date: Mon, 3 Apr 2000 22:00:18 +0000 Subject: [PATCH] - Fix build bug --- ext/ldap/ldap.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/ext/ldap/ldap.c b/ext/ldap/ldap.c index 5980a53bc9..364a9d8fca 100644 --- a/ext/ldap/ldap.c +++ b/ext/ldap/ldap.c @@ -156,11 +156,15 @@ PHP_MINFO_FUNCTION(ldap) #if HAVE_NSLDAP LDAPVersion ver; double SDKVersion; - /* Print version information */ - SDKVersion = ldap_version( &ver ); #endif + LDAPLS_FETCH(); +#if HAVE_NSLDAP +/* Print version information */ + SDKVersion = ldap_version( &ver ); +#endif + if (LDAPG(max_links) == -1) { strcpy(maxl, "Unlimited"); } else { -- 2.50.1