- Fix build on 4.11

Reported by:	kris mail
This commit is contained in:
Sergey Matveychuk 2006-08-06 18:41:40 +00:00
parent d4f227b424
commit 77f5d13d6f
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=169846
2 changed files with 11 additions and 2 deletions

View file

@ -23,8 +23,17 @@ WRKSRC= ${WRKDIR}/${PORTNAME}-2.7
ONLY_FOR_ARCHS= i386 amd64 ONLY_FOR_ARCHS= i386 amd64
.include <bsd.port.pre.mk>
.if ${OSVERSION} < 500000
CONST=
.else
CONST= const
.endif
post-patch: post-patch:
@${REINPLACE_CMD} -e 's/> FD_SETSIZE/> (int)FD_SETSIZE/g' ${WRKSRC}/soapcpp2/stdsoap2.c @${REINPLACE_CMD} -e 's/> FD_SETSIZE/> (int)FD_SETSIZE/g' ${WRKSRC}/soapcpp2/stdsoap2.c
@${REINPLACE_CMD} -e 's/> FD_SETSIZE/> (int)FD_SETSIZE/g' ${WRKSRC}/soapcpp2/stdsoap2.cpp @${REINPLACE_CMD} -e 's/> FD_SETSIZE/> (int)FD_SETSIZE/g' ${WRKSRC}/soapcpp2/stdsoap2.cpp
@${REINPLACE_CMD} -e 's/%%CONST%%/${CONST}/' ${WRKSRC}/soapcpp2/stdsoap2.cpp
.include <bsd.port.mk> .include <bsd.port.post.mk>

View file

@ -14,7 +14,7 @@
if (!meth) if (!meth)
break; break;
- val = meth->i2v(meth, meth->d2i(NULL, (unsigned char**)&ext->value->data, ext->value->length), NULL); - val = meth->i2v(meth, meth->d2i(NULL, (unsigned char**)&ext->value->data, ext->value->length), NULL);
+ val = meth->i2v(meth, meth->d2i(NULL, (const unsigned char**)&ext->value->data, ext->value->length), NULL); + val = meth->i2v(meth, meth->d2i(NULL, (%%CONST%% unsigned char**)&ext->value->data, ext->value->length), NULL);
for (j = 0; j < sk_CONF_VALUE_num(val); j++) for (j = 0; j < sk_CONF_VALUE_num(val); j++)
{ CONF_VALUE *nval = sk_CONF_VALUE_value(val, j); { CONF_VALUE *nval = sk_CONF_VALUE_value(val, j);
if (nval && !strcmp(nval->name, "DNS") && !strcmp(nval->value, host)) if (nval && !strcmp(nval->name, "DNS") && !strcmp(nval->value, host))