From bf816cb7c011b37325b528a68de3b49b22690541 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Ond=C5=99ej=20Kuzn=C3=ADk?= Date: Wed, 18 Jul 2018 09:16:11 +0100 Subject: [PATCH] Do not require ac/string.h for lber_pvt.h --- include/lber_pvt.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/include/lber_pvt.h b/include/lber_pvt.h index fff5e85ffe..3767fa22dc 100644 --- a/include/lber_pvt.h +++ b/include/lber_pvt.h @@ -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) \ -- 2.39.5