From: Michael Lee Date: Thu, 2 Jul 2015 14:49:15 +0000 (-0700) Subject: Add an exception for building on OSX. X-Git-Tag: v0.49.0~7 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=124b2552b790f224dfb8b08d5244349ebca9c628;p=folly.git Add an exception for building on OSX. Summary: The Homebrew setup fails to compile on OSX. Reviewed By: @paulbiss Differential Revision: D2212084 --- 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));