]> git.sur5r.net Git - openldap/commitdiff
Do not require ac/string.h for lber_pvt.h master
authorOndřej Kuzník <ondra@openldap.org>
Wed, 18 Jul 2018 08:16:11 +0000 (09:16 +0100)
committerOndřej Kuzník <ondra@openldap.org>
Wed, 18 Jul 2018 08:16:11 +0000 (09:16 +0100)
include/lber_pvt.h

index fff5e85ffe99df2b7da9364f356af2a8b85c023d..3767fa22dc9b4546fa1423519ce0990f5e4cbe3d 100644 (file)
@@ -201,6 +201,10 @@ ber_bvarray_dup_x LDAP_P(( BerVarray *dst, BerVarray src, void *ctx ));
                (dst)->bv_val = (bv)->bv_val; \
        } while (0)
 
+#ifndef STRLENOF
+#define STRLENOF(s)    (sizeof(s)-1)
+#endif
+
 #define BER_BVC(s)             { STRLENOF(s), (char *)(s) }
 #define BER_BVNULL             { 0L, NULL }
 #define BER_BVZERO(bv) \