summaryrefslogtreecommitdiff
path: root/src/cstore
diff options
context:
space:
mode:
authorJohn Southworth <john.southworth@vyatta.com>2011-07-29 20:38:22 -0700
committerJohn Southworth <john.southworth@vyatta.com>2011-07-29 20:38:22 -0700
commit6de230f443c7e13fb3836b411b5545e5615765fa (patch)
tree7e45943942cfca2e9016e87bd12d2eae5c4ad143 /src/cstore
parentc47de319ccd918caccfc1f3ee394e48f6d4e4dc5 (diff)
parent472427d9ab77a4d1f37285399c3789837b77d74f (diff)
downloadvyatta-cfg-6de230f443c7e13fb3836b411b5545e5615765fa.tar.gz
vyatta-cfg-6de230f443c7e13fb3836b411b5545e5615765fa.zip
Merge branch 'oxnard' of git.vyatta.com:/git/vyatta-cfg into oxnard
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>());