> 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 <c...@fbsd.es>
PGP fingerprint = C60E 9497 5302 793B CC2D  BB89 A1F3 5D66 E6D0 5453

Attachment: signature.asc
Description: This is a digitally signed message part

Reply via email to