summaryrefslogtreecommitdiffstats
path: root/libcxx/src
diff options
context:
space:
mode:
authorJonathan Roelofs <jonathan@codesourcery.com>2015-03-13 15:09:42 +0000
committerJonathan Roelofs <jonathan@codesourcery.com>2015-03-13 15:09:42 +0000
commitf11625d131f90ec605773040f797d3b1596b1f01 (patch)
tree7391c6a534909ece23c32c5bb19aee70bbac84f7 /libcxx/src
parent00c45289f41dde47c3b212953c918dbc0a0b40fa (diff)
downloadbcm5719-llvm-f11625d131f90ec605773040f797d3b1596b1f01.tar.gz
bcm5719-llvm-f11625d131f90ec605773040f797d3b1596b1f01.zip
Fix build break on Solaris introduced by r231940
Solaris apparently doesn't have iswblank_l. Thanks to C Bergstrom for the report! llvm-svn: 232172
Diffstat (limited to 'libcxx/src')
-rw-r--r--libcxx/src/locale.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/libcxx/src/locale.cpp b/libcxx/src/locale.cpp
index 797bd057078..54a24e68c57 100644
--- a/libcxx/src/locale.cpp
+++ b/libcxx/src/locale.cpp
@@ -1312,8 +1312,10 @@ ctype_byname<wchar_t>::do_is(const char_type* low, const char_type* high, mask*
if (iswxdigit_l(ch, __l))
*vec |= xdigit;
#endif
+#if !defined(__sun__)
if (iswblank_l(ch, __l))
*vec |= blank;
+#endif
}
}
return low;
OpenPOWER on IntegriCloud