diff options
author | sem <sem@FreeBSD.org> | 2006-08-05 16:31:04 +0800 |
---|---|---|
committer | sem <sem@FreeBSD.org> | 2006-08-05 16:31:04 +0800 |
commit | 755807ee93e9603f71efc9f02170ba2a53f6bce2 (patch) | |
tree | d2551b5bab16cc1a2a10bf5b9e3222377a4d52e2 /devel | |
parent | 8dabbb2c6b9c69c4d689ba5a9af8f2946f507e25 (diff) | |
download | freebsd-ports-graphics-755807ee93e9603f71efc9f02170ba2a53f6bce2.tar.gz freebsd-ports-graphics-755807ee93e9603f71efc9f02170ba2a53f6bce2.tar.zst freebsd-ports-graphics-755807ee93e9603f71efc9f02170ba2a53f6bce2.zip |
- FD_SETSIZE is unsigned in FreeBSD. It caused problem when it's compared
with failed socket descriptor (-1).
PR: ports/101352
Submitted by: Simun Mikecin <numisemis@yahoo.com>
Diffstat (limited to 'devel')
-rw-r--r-- | devel/gsoap/Makefile | 5 | ||||
-rw-r--r-- | devel/gsoap/files/patch-soapcpp2-stdsoap2.cpp | 15 |
2 files changed, 17 insertions, 3 deletions
diff --git a/devel/gsoap/Makefile b/devel/gsoap/Makefile index 4f1cd76da38..e78f5aaea73 100644 --- a/devel/gsoap/Makefile +++ b/devel/gsoap/Makefile @@ -7,6 +7,7 @@ PORTNAME= gsoap PORTVERSION= 2.7.8c +PORTREVISION= 1 CATEGORIES= devel MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} MASTER_SITE_SUBDIR= gsoap2 @@ -22,4 +23,8 @@ WRKSRC= ${WRKDIR}/${PORTNAME}-2.7 ONLY_FOR_ARCHS= i386 amd64 +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.cpp + .include <bsd.port.mk> diff --git a/devel/gsoap/files/patch-soapcpp2-stdsoap2.cpp b/devel/gsoap/files/patch-soapcpp2-stdsoap2.cpp index ea3dc0061a6..d842a74e746 100644 --- a/devel/gsoap/files/patch-soapcpp2-stdsoap2.cpp +++ b/devel/gsoap/files/patch-soapcpp2-stdsoap2.cpp @@ -1,6 +1,6 @@ ---- soapcpp2/stdsoap2.cpp.orig Sat May 20 00:33:35 2006 -+++ soapcpp2/stdsoap2.cpp Sat May 20 00:58:56 2006 -@@ -3251,7 +3251,7 @@ +--- soapcpp2/stdsoap2.cpp.orig Mon Jun 26 23:36:38 2006 ++++ soapcpp2/stdsoap2.cpp Sat Aug 5 12:18:51 2006 +@@ -3282,7 +3282,7 @@ soap->errnum = h_errno; } #elif defined(HAVE_GETHOSTBYNAME_R) @@ -9,3 +9,12 @@ #elif defined(VXWORKS) /* If the DNS resolver library resolvLib has been configured in the vxWorks * image, a query for the host IP address is sent to the DNS server, if the +@@ -3755,7 +3755,7 @@ + X509V3_EXT_METHOD *meth = X509V3_EXT_get(ext); + if (!meth) + break; +- 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); + for (j = 0; j < sk_CONF_VALUE_num(val); j++) + { CONF_VALUE *nval = sk_CONF_VALUE_value(val, j); + if (nval && !strcmp(nval->name, "DNS") && !strcmp(nval->value, host)) |