git: 5a73a52238fe - main - net/dante: unbreak the port's build (chase commit a270dbfaa9ce)

From: Alexey Dokuchaev <danfe_at_FreeBSD.org>
Date: Tue, 16 Jul 2024 08:12:38 UTC
The branch main has been updated by danfe:

URL: https://cgit.FreeBSD.org/ports/commit/?id=5a73a52238fef2d144f2a4eeeea16a3d09f5cad9

commit 5a73a52238fef2d144f2a4eeeea16a3d09f5cad9
Author:     Alexey Dokuchaev <danfe@FreeBSD.org>
AuthorDate: 2024-07-16 08:11:22 +0000
Commit:     Alexey Dokuchaev <danfe@FreeBSD.org>
CommitDate: 2024-07-16 08:11:22 +0000

    net/dante: unbreak the port's build (chase commit a270dbfaa9ce)
    
    PR:             280298, 280304
    Reported by:    Mark McBride, pkg-fallout
---
 net/dante/files/patch-lib_upnp.c | 15 +++++++++++++++
 1 file changed, 15 insertions(+)

diff --git a/net/dante/files/patch-lib_upnp.c b/net/dante/files/patch-lib_upnp.c
new file mode 100644
index 000000000000..4bbd8361b4d5
--- /dev/null
+++ b/net/dante/files/patch-lib_upnp.c
@@ -0,0 +1,15 @@
+--- lib/upnp.c.orig	2020-11-11 16:11:55 UTC
++++ lib/upnp.c
+@@ -208,7 +208,11 @@ socks_initupnp(gw, emsg, emsglen)
+          socks_autoadd_directroute(&commands, &protocols, &saddr, &smask);
+       }
+ 
+-      devtype = UPNP_GetValidIGD(dev, &url, &data, myaddr, sizeof(myaddr));
++      devtype = UPNP_GetValidIGD(dev, &url, &data, myaddr, sizeof(myaddr)
++#if MINIUPNPC_API_VERSION > 17
++      , NULL, 0
++#endif
++      );
+       switch (devtype) {
+          case UPNP_NO_IGD:
+             snprintf(emsg, emsglen, "no UPNP IGD discovered on local network");