diff options
Diffstat (limited to 'net/netmap/files/patch-netmap__lookup.h')
-rw-r--r-- | net/netmap/files/patch-netmap__lookup.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/net/netmap/files/patch-netmap__lookup.h b/net/netmap/files/patch-netmap__lookup.h new file mode 100644 index 000000000000..5b087737f2d9 --- /dev/null +++ b/net/netmap/files/patch-netmap__lookup.h @@ -0,0 +1,15 @@ +--- netmap/lookup.h.orig ++++ netmap/lookup.h +@@ -14,10 +14,10 @@ + string ip; + string hostname; + +- bool operator==(const HostRec& hr) ++ bool operator==(const HostRec& hr) const + { return ip == hr.ip && hostname == hr.hostname; } + +- bool operator<(const HostRec& hr) ++ bool operator<(const HostRec& hr) const + { return ip==hr.ip ? hostname<hr.hostname : ip<hr.ip; } + }; + |