summaryrefslogtreecommitdiff
path: root/src/cstore
diff options
context:
space:
mode:
Diffstat (limited to 'src/cstore')
-rw-r--r--src/cstore/svector.hpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/cstore/svector.hpp b/src/cstore/svector.hpp
index bc04fdc..44d67b9 100644
--- a/src/cstore/svector.hpp
+++ b/src/cstore/svector.hpp
@@ -81,7 +81,12 @@ public:
return _data;
};
size_t hash() const {
+#if __GNUC_MAJOR__ == 4 && __GNUC_MINOR__ < 6
return std::tr1::_Fnv_hash<sizeof(size_t)>::hash(_data, _len);
+#else
+ // Newer glibc has different internal
+ return std::tr1::_Fnv_hash_base<sizeof(size_t)>::hash(_data, _len);
+#endif
};
std::string to_string() const {
return to_string(Int2Type<RAW_CSTR_DATA>());