From 00b51d5c25abd0d91c7f6b25aeb3bdc8102e436b Mon Sep 17 00:00:00 2001 From: Brent Cook Date: Sat, 2 Aug 2014 21:43:56 -0500 Subject: conditionally build strnlen if needed. it is only used by strndup prodded by Sortie@ --- include/string.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'include') diff --git a/include/string.h b/include/string.h index c4bf1e4..ab232a8 100644 --- a/include/string.h +++ b/include/string.h @@ -22,8 +22,10 @@ size_t strlcat(char *dst, const char *src, size_t siz); #ifdef NO_STRNDUP char * strndup(const char *str, size_t maxlen); +#ifdef NO_STRNLEN size_t strnlen(const char *str, size_t maxlen); #endif +#endif #ifdef NO_EXPLICIT_BZERO void explicit_bzero(void *, size_t); -- cgit v1.2.3-55-g6feb