]> git.sur5r.net Git - openldap/blobdiff - include/lber_pvt.h
Do not require ac/string.h for lber_pvt.h
[openldap] / include / lber_pvt.h
index 0e0bfd9f2731b3559de9865fd1c0ebe8af8675b1..3767fa22dc9b4546fa1423519ce0990f5e4cbe3d 100644 (file)
@@ -1,7 +1,7 @@
 /* $OpenLDAP$ */
 /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
  *
- * Copyright 1998-2014 The OpenLDAP Foundation.
+ * Copyright 1998-2018 The OpenLDAP Foundation.
  * All rights reserved.
  *
  * Redistribution and use in source and binary forms, with or without
@@ -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) \