From 124b2552b790f224dfb8b08d5244349ebca9c628 Mon Sep 17 00:00:00 2001 From: Michael Lee Date: Thu, 2 Jul 2015 07:49:15 -0700 Subject: [PATCH] Add an exception for building on OSX. Summary: The Homebrew setup fails to compile on OSX. Reviewed By: @paulbiss Differential Revision: D2212084 --- folly/String.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/folly/String.cpp b/folly/String.cpp index 5ae7ee16..bbf8f323 100644 --- a/folly/String.cpp +++ b/folly/String.cpp @@ -342,7 +342,7 @@ fbstring errnoStr(int err) { } else { result.assign(buf); } -#elif defined(HAVE_XSI_STRERROR_R) +#elif defined(HAVE_XSI_STRERROR_R) || defined(__APPLE__) || defined(__ANDROID__) // Using XSI-compatible strerror_r int r = strerror_r(err, buf, sizeof(buf)); -- 2.34.1