You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficserver.apache.org by dr...@apache.org on 2018/03/08 21:47:22 UTC
[trafficserver] branch master updated: Add fix for apple
This is an automated email from the ASF dual-hosted git repository.
dragon pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/trafficserver.git
The following commit(s) were added to refs/heads/master by this push:
new acafb14 Add fix for apple
acafb14 is described below
commit acafb14dd0d7c498c8503f049d27672ec05607ef
Author: Jason Kenny <dr...@live.com>
AuthorDate: Thu Mar 8 15:25:11 2018 -0600
Add fix for apple
---
lib/ts/string_view.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/ts/string_view.h b/lib/ts/string_view.h
index 9c88b30..a702830 100644
--- a/lib/ts/string_view.h
+++ b/lib/ts/string_view.h
@@ -1224,7 +1224,7 @@ template <class _Type, class _Traits> struct hash<ts::basic_string_view<_Type, _
// This should also mean we have some consistent behavior with std code
#if defined(__linux__)
return std::_Hash_impl::hash(x.data(), x.length() * sizeof(typename string_type::value_type));
-#elif defined(__FreeBSD__)
+#elif defined(freebsd) || defined(darwin)
return __do_string_hash(x.data(), x.data() + x.size());
#endif
}
--
To stop receiving notification emails like this one, please contact
dragon@apache.org.