trafficserver-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dra...@apache.org
Subject [trafficserver] branch master updated: Add fix for apple
Date Thu, 08 Mar 2018 21:47:22 GMT
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 <dragon512@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.

Mime
View raw message