summaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authordanfe <danfe@FreeBSD.org>2004-09-20 19:34:58 +0000
committerdanfe <danfe@FreeBSD.org>2004-09-20 19:34:58 +0000
commit537a6054e4b8d7fa6a9e866eddf787e9a3be2c5a (patch)
tree152798b3910a20ea6bf2c45c14d16d579ac87096 /net
parentaf3ea59084a69d232761454e304fe0aaf0227465 (diff)
downloadFreeBSD-ports-537a6054e4b8d7fa6a9e866eddf787e9a3be2c5a.zip
FreeBSD-ports-537a6054e4b8d7fa6a9e866eddf787e9a3be2c5a.tar.gz
Fix bad C++ code, to unbreak on 5.X and -CURRENT.
Reported by: kris Approved by: portmgr (marcus), fjoe (mentor, implicit)
Diffstat (limited to 'net')
-rw-r--r--net/netmap/Makefile8
-rw-r--r--net/netmap/files/patch-belgolib::dirs.h9
-rw-r--r--net/netmap/files/patch-netmap::misc.h18
3 files changed, 28 insertions, 7 deletions
diff --git a/net/netmap/Makefile b/net/netmap/Makefile
index d986e59..e067bdc 100644
--- a/net/netmap/Makefile
+++ b/net/netmap/Makefile
@@ -20,14 +20,8 @@ RUN_DEPENDS= dotty:${PORTSDIR}/graphics/graphviz
USE_GMAKE= yes
-.include <bsd.port.pre.mk>
-
-.if ${OSVERSION} >= 502126
-BROKEN= "Does not compile on FreeBSD >= 5.x"
-.endif
-
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/makelist/makelist ${PREFIX}/bin
${INSTALL_PROGRAM} ${WRKSRC}/netmap/netmap ${PREFIX}/bin
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>
diff --git a/net/netmap/files/patch-belgolib::dirs.h b/net/netmap/files/patch-belgolib::dirs.h
index 4d912a4..27542fb 100644
--- a/net/netmap/files/patch-belgolib::dirs.h
+++ b/net/netmap/files/patch-belgolib::dirs.h
@@ -8,3 +8,12 @@
#ifndef __make_dep__
#include <string>
+@@ -91,7 +92,7 @@
+ {
+ list<T*> result=ld1;
+
+- for(list<T*>::const_iterator i = ld2.begin(); i != ld2.end(); i++)
++ for(typename list<T*>::const_iterator i = ld2.begin(); i != ld2.end(); i++)
+ result.push_back(*i);
+
+ return result;
diff --git a/net/netmap/files/patch-netmap::misc.h b/net/netmap/files/patch-netmap::misc.h
index 8ba4bdb..4ea51bf 100644
--- a/net/netmap/files/patch-netmap::misc.h
+++ b/net/netmap/files/patch-netmap::misc.h
@@ -8,3 +8,21 @@
string indent(unsigned);
+@@ -21,7 +22,7 @@
+ template <class T>
+ bool contains(list<T>& l, const T& t)
+ {
+- for(list<T>::iterator li = l.begin(); li != l.end(); li++)
++ for(typename list<T>::iterator li = l.begin(); li != l.end(); li++)
+ if((*li) == t)
+ return true;
+ return false;
+@@ -31,7 +32,7 @@
+ list<T> intersect(list<T>& l1, list<T>& l2)
+ {
+ list<T> result;
+- for(list<T>::iterator li = l1.begin(); li != l1.end(); li++)
++ for(typename list<T>::iterator li = l1.begin(); li != l1.end(); li++)
+ if(contains(l2, *li))
+ result.push_back(*li);
+
OpenPOWER on IntegriCloud