summaryrefslogtreecommitdiff
path: root/src/xline.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/xline.cpp')
-rw-r--r--src/xline.cpp9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/xline.cpp b/src/xline.cpp
index 064903ba1..5559390e7 100644
--- a/src/xline.cpp
+++ b/src/xline.cpp
@@ -105,7 +105,11 @@ extern FILE *log_file;
namespace nspace
{
+#ifdef GCC34
+ template<> struct hash<in_addr>
+#else
template<> struct nspace::hash<in_addr>
+#endif
{
size_t operator()(const struct in_addr &a) const
{
@@ -114,8 +118,11 @@ namespace nspace
return q;
}
};
-
+#ifdef GCC34
+ template<> struct hash<string>
+#else
template<> struct nspace::hash<string>
+#endif
{
size_t operator()(const string &s) const
{