From 9ab69bc7853ebcee1d4e76acd1a05d548433289a Mon Sep 17 00:00:00 2001 From: Michael Lee Date: Fri, 1 Apr 2016 09:32:29 -0700 Subject: [PATCH] `strndup` is defined on modern OSX Summary: `strndup` is defined on modern versions of OSX Reviewed By: Orvid, grp Differential Revision: D3122635 fb-gh-sync-id: 678792765addf2fb226e835d3b7a67e155ed6dc5 fbshipit-source-id: 678792765addf2fb226e835d3b7a67e155ed6dc5 --- folly/portability/String.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/folly/portability/String.h b/folly/portability/String.h index 0d235559..d9022cde 100755 --- a/folly/portability/String.h +++ b/folly/portability/String.h @@ -25,7 +25,7 @@ extern "C" void* memrchr(const void* s, int c, size_t n); #endif -#if defined(_WIN32) || defined(__APPLE__) || defined(__FreeBSD__) +#if defined(_WIN32) || defined(__FreeBSD__) extern "C" char* strndup(const char* a, size_t len); #endif -- 2.34.1