Fix build with gcc 4.2.

Approved by:	portmgr (pav)
This commit is contained in:
Max Khon 2007-11-13 20:26:37 +00:00
parent 10fff72a64
commit 185c1b142b
2 changed files with 12 additions and 5 deletions

View file

@ -7,7 +7,7 @@
PORTNAME= tora
PORTVERSION= 1.3.21
PORTREVISION= 2
PORTREVISION= 3
CATEGORIES= databases
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ${PORTNAME}
@ -52,10 +52,6 @@ PREFIX2FIX= help/preferences.html totool.cpp
.include <bsd.port.pre.mk>
.if ${OSVERSION} >= 700000
BROKEN= does not link with oracle8-client
.endif
pre-configure:
${REINPLACE_CMD} -e 's|-lpthread|${PTHREAD_LIBS}|g' ${WRKSRC}/configure
${REINPLACE_CMD} -e 's|/etc/torarc|${PREFIX}/etc/torarc|' ${PREFIX2FIX:S|^|${WRKSRC}/|}

View file

@ -0,0 +1,11 @@
--- tothread.h.orig 2007-11-13 02:21:24.000000000 +0600
+++ tothread.h 2007-11-13 02:21:49.000000000 +0600
@@ -217,6 +217,8 @@
* thread and task objects so the calling thread must never delete a started thread.
*/
+void *toThreadStartWrapper(void*);
+
class toThread
{
private: