diff options
Diffstat (limited to 'memory/build/mozmemory_wrap.c')
-rw-r--r-- | memory/build/mozmemory_wrap.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/memory/build/mozmemory_wrap.c b/memory/build/mozmemory_wrap.c index 409b39da23..fdb8447d33 100644 --- a/memory/build/mozmemory_wrap.c +++ b/memory/build/mozmemory_wrap.c @@ -68,6 +68,7 @@ mozmem_malloc_impl(_ZdaPvRKSt9nothrow_t)(void *ptr) #undef strndup #undef strdup +#ifndef XP_DARWIN MOZ_MEMORY_API char * strndup_impl(const char *src, size_t len) { @@ -85,6 +86,7 @@ strdup_impl(const char *src) size_t len = strlen(src); return strndup_impl(src, len); } +#endif /* XP_DARWIN */ #ifdef XP_WIN /* |