1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-22 04:17:44 +00:00

fix build error under gcc 3.4.2.

PR:		ports/70443
Approved by:	vanilla (co-mentor)
This commit is contained in:
Cheng-Lung Sung 2004-08-26 04:29:03 +00:00
parent 8b1f3b3b82
commit 74f57da8f4
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=117287
3 changed files with 34 additions and 0 deletions

View File

@ -28,5 +28,9 @@ EXTRA_PATCHES+= ${FILESDIR}/extra-patch-src::domhelpers.h-gcc295
post-patch:
@${REINPLACE_CMD} -e "s/ //g" ${WRKSRC}/src/xmlcomposer.cpp
.endif
.if ${OSVERSION} >= 502124
EXTRA_PATCHES+= ${FILESDIR}/extra-patch-src::reference.h-gcc342 \
${FILESDIR}/extra-patch-src::sablo.h-gcc342
.endif
.include <bsd.port.post.mk>

View File

@ -0,0 +1,15 @@
--- src/reference.h.orig Fri Jul 23 05:03:03 2004
+++ src/reference.h Sat Aug 14 14:41:14 2004
@@ -57,10 +57,10 @@
addref();
}
- Reference(C* ptr, bool addref)
+ Reference(C* ptr, bool has_addref)
{
m_ptr = ptr;
- if(addref)
+ if(has_addref)
addref();
}

View File

@ -0,0 +1,15 @@
--- src/sablo.h.orig Sat Jul 24 12:18:06 2004
+++ src/sablo.h Sat Aug 14 14:42:45 2004
@@ -146,10 +146,10 @@
addref();
}
- Ref(C* ptr, bool addref)
+ Ref(C* ptr, bool has_addref)
{
m_ptr = ptr;
- if(addref)
+ if(has_addref)
addref();
}