From c629d2625c9ab940f710885301804e58c50bc78c Mon Sep 17 00:00:00 2001 From: Latif Khalifa Date: Thu, 7 Nov 2013 04:35:39 +0100 Subject: [PATCH] Fixed Mac build --- indra/newview/llvoavatar.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/indra/newview/llvoavatar.cpp b/indra/newview/llvoavatar.cpp index 6916951c7..a3b3ee524 100644 --- a/indra/newview/llvoavatar.cpp +++ b/indra/newview/llvoavatar.cpp @@ -131,6 +131,14 @@ #include #include +#if LL_DARWIN +size_t strnlen(const char *s, size_t n) +{ + const char *p = (const char *)memchr(s, 0, n); + return(p ? p-s : n); +} +#endif + using namespace LLAvatarAppearanceDefines; //-----------------------------------------------------------------------------