Get libc++ building on Sun Solaris. Patch from C Bergstrom.
llvm-svn: 226947
Cr-Mirrored-From: sso://chromium.googlesource.com/_direct/external/github.com/llvm/llvm-project
Cr-Mirrored-Commit: fbbfd09214a793f55fea9203760452926de1594d
diff --git a/include/cmath b/include/cmath
index d3aa4be..c2c6301 100644
--- a/include/cmath
+++ b/include/cmath
@@ -654,7 +654,7 @@
// abs
-#if !defined(_AIX)
+#if !defined(_AIX) && !defined(__sun__)
inline _LIBCPP_INLINE_VISIBILITY
float
abs(float __lcpp_x) _NOEXCEPT {return fabsf(__lcpp_x);}