diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/cli_new.c | 1 | ||||
-rw-r--r-- | src/cstore/svector.hpp | 5 |
2 files changed, 5 insertions, 1 deletions
diff --git a/src/cli_new.c b/src/cli_new.c index 3498025..87c5087 100644 --- a/src/cli_new.c +++ b/src/cli_new.c @@ -89,7 +89,6 @@ static int eval_va(valstruct *res, vtw_node *node); static int expand_string(char *p); static void free_node(vtw_node *node); static void free_node_tree(vtw_node *node); -static void free_reuse_list(void); void free_path(vtw_path *path); static void free_string(char *str); static vtw_node * get_node(void); 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>()); |