From c51569415992084e7092c73b9c76a28cd8adbadf Mon Sep 17 00:00:00 2001 From: Alexey Dokuchaev Date: Mon, 20 Sep 2004 19:30:58 +0000 Subject: [PATCH] Fix bad C++ code. Unmark BROKEN. Reported by: kris Approved by: portmgr (marcus), fjoe (mentor, implicit) --- net/osrtspproxy/Makefile | 8 +---- net/osrtspproxy/files/patch-libapp-tlist.h | 38 ++++++++++++++++++++++ 2 files changed, 39 insertions(+), 7 deletions(-) create mode 100644 net/osrtspproxy/files/patch-libapp-tlist.h diff --git a/net/osrtspproxy/Makefile b/net/osrtspproxy/Makefile index 497db0f159cb..91350d9604b1 100644 --- a/net/osrtspproxy/Makefile +++ b/net/osrtspproxy/Makefile @@ -17,14 +17,8 @@ COMMENT= The RTSP Proxy Kit is a reference implementation of an RTSP proxy HAS_CONFIGURE= YES -.include - -.if ${OSVERSION} >= 502126 -BROKEN= "Does not compile on FreeBSD >= 5.x" -.endif - do-install: ${INSTALL_PROGRAM} ${WRKSRC}/rtspproxy/rtspproxy ${PREFIX}/sbin ${INSTALL_SCRIPT} ${FILESDIR}/rtspproxy.sh ${PREFIX}/etc/rc.d/rtspproxy.sh.sample -.include +.include diff --git a/net/osrtspproxy/files/patch-libapp-tlist.h b/net/osrtspproxy/files/patch-libapp-tlist.h new file mode 100644 index 000000000000..dcd72c4f0e81 --- /dev/null +++ b/net/osrtspproxy/files/patch-libapp-tlist.h @@ -0,0 +1,38 @@ +--- libapp/tlist.h.orig Mon Sep 20 15:00:01 2004 ++++ libapp/tlist.h Mon Sep 20 15:00:36 2004 +@@ -94,7 +94,7 @@ + T& operator*( void ) + { + assert( m_pList && m_pNode ); +- return m_pNode->GetData(); ++ return this->m_pNode->GetData(); + } + protected: + Iterator( TSingleList* pList, TSingleNode* pNode ) : +@@ -114,7 +114,7 @@ + const T& operator*( void ) const + { + assert( m_pList && m_pNode ); +- return m_pNode->GetData(); ++ return this->m_pNode->GetData(); + } + protected: + ConstIterator( const TSingleList* pList, TSingleNode* pNode ) : +@@ -282,7 +282,7 @@ + T& operator*( void ) + { + assert( m_pList && m_pNode ); +- return m_pNode->GetData(); ++ return this->m_pNode->GetData(); + } + protected: + Iterator( const TDoubleList* pList, TDoubleNode* pNode ) : +@@ -302,7 +302,7 @@ + const T& operator*( void ) const + { + assert( m_pList && m_pNode ); +- return m_pNode->GetData(); ++ return this->m_pNode->GetData(); + } + protected: + ConstIterator( const TDoubleList* pList, TDoubleNode* pNode ) :