From: Pierangelo Masarati Date: Thu, 28 Apr 2005 11:03:22 +0000 (+0000) Subject: anticipate undefined symbols when compiling for 2.2 X-Git-Tag: OPENLDAP_AC_BP~776 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=5697bed1f9ef7afab668338f612da8c43c5f0e1e;p=openldap anticipate undefined symbols when compiling for 2.2 --- diff --git a/servers/slapd/overlays/dynlist.c b/servers/slapd/overlays/dynlist.c index c417292000..4fd1ff04b7 100644 --- a/servers/slapd/overlays/dynlist.c +++ b/servers/slapd/overlays/dynlist.c @@ -32,6 +32,17 @@ /* FIXME: the code differs if SLAP_OPATTRS is defined or not; * SLAP_OPATTRS is not defined in 2.2 yet, while this overlay * expects HEAD code at least later than August 6, 2004. */ +/* FIXME: slap_anlist_no_attrs was introduced in 2.3; here it + * is anticipated to allow using this overlay with 2.2. */ + +#if LDAP_VENDOR_VERSION_MINOR != X && LDAP_VENDOR_VERSION_MINOR < 3 +static AttributeName anlist_no_attrs[] = { + { BER_BVC( LDAP_NO_ATTRS ), NULL, 0, NULL }, + { BER_BVNULL, NULL, 0, NULL } +}; + +static AttributeName *slap_anlist_no_attrs = anlist_no_attrs; +#endif typedef struct dynlist_info { ObjectClass *dli_oc;