freebsd-ports/net/netmap/files/patch-netmap__hostclass.h
Martin Wilke 177df99bd7 - Fix build with clang
PR:		185506
Submitted by:	ports fury
2014-01-19 09:28:21 +00:00

15 lines
364 B
C

--- netmap/hostclass.h.orig
+++ netmap/hostclass.h
@@ -48,10 +48,10 @@
HostClass* a;
HostClass* b;
- bool operator==(HostLink& hl)
+ bool operator==(const HostLink& hl) const
{ return a == hl.a && b == hl.b; }
- bool operator <(HostLink& hl)
+ bool operator <(const HostLink& hl) const
{ return a==hl.a ? b < hl.b : a < hl.a; }
};