error build net-p2p/transmission-cli after update net/miniupnpc
Carlos J Puga Medina
cpm at fbsd.es
Wed Oct 14 12:15:10 UTC 2015
> upnp.c:91:51: error: too few arguments to function call, expected 7,
> have 6
> ret = upnpDiscover (msec, NULL, NULL, 0, 0, &err);
The following patch solved the problem for me:
% cat /usr/ports/net-p2p/transmission-cli/files/patch
-libtransmission_upnp.c
--- libtransmission/upnp.c.orig 2015-10-14 12:00:18 UTC
+++ libtransmission/upnp.c
@@ -88,7 +88,7 @@ tr_upnpDiscover (int msec)
#if (MINIUPNPC_API_VERSION >= 8) /* adds ipv6 and error args */
int err = UPNPDISCOVER_SUCCESS;
- ret = upnpDiscover (msec, NULL, NULL, 0, 0, &err);
+ ret = upnpDiscover (msec, NULL, NULL, 0, 0, 0, &err);
have_err = err != UPNPDISCOVER_SUCCESS;
#else
ret = upnpDiscover (msec, NULL, NULL, 0);
Cheers,
--
Carlos Jacobo Puga Medina <cpm at fbsd.es>
PGP fingerprint = C60E 9497 5302 793B CC2D BB89 A1F3 5D66 E6D0 5453
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 473 bytes
Desc: This is a digitally signed message part
URL: <http://lists.freebsd.org/pipermail/freebsd-ports/attachments/20151014/8f9bdd70/attachment.bin>
More information about the freebsd-ports
mailing list