X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=servers%2Fldapd%2Fcompare.c;h=b0b8d339b8b3776933ba34cbd494f9210f1e3fe3;hb=9fef42d3f82ac622eea6c1c565b0e84e81104560;hp=88ac1604f7e4fd2205d1a81b850eed4a7801a39d;hpb=42e0d83cb3a1a1c5b25183f1ab74ce7edbe25de7;p=openldap diff --git a/servers/ldapd/compare.c b/servers/ldapd/compare.c index 88ac1604f7..b0b8d339b8 100644 --- a/servers/ldapd/compare.c +++ b/servers/ldapd/compare.c @@ -10,21 +10,24 @@ * is provided ``as is'' without express or implied warranty. */ +#include "portable.h" + #include + +#include + #include #include #include #include #include #include -#include -#include + #include "lber.h" #include "ldap.h" #include "common.h" -#ifdef COMPAT20 -extern int ldap_compat; +#ifdef HAVE_COMPAT20 #define COMPTAG (ldap_compat == 20 ? OLD_LDAP_RES_COMPARE : LDAP_RES_COMPARE) #else #define COMPTAG LDAP_RES_COMPARE @@ -42,7 +45,6 @@ do_compare( struct ds_compare_arg ca; AttributeType type; static CommonArgs common = default_common_args; - extern short ldap_dn_syntax; Debug( LDAP_DEBUG_TRACE, "do_compare\n", 0, 0, 0 );