0
0
mirror of https://github.com/termux/termux-packages.git synced 2024-11-23 14:56:16 +00:00
termux-packages/x11-packages/godot/upnp.cpp.patch
2024-11-09 19:04:13 +02:00

26 lines
712 B
Diff

--- godot-4.0-stable/modules/upnp/upnp.cpp 2023-03-01 03:38:07.000000000 +0300
+++ godot-4.0-stable/modules/upnp/upnp.cpp.patch 2023-03-04 13:25:27.366343791 +0300
@@ -30,8 +30,8 @@
#include "upnp.h"
-#include <miniwget.h>
-#include <upnpcommands.h>
+#include <miniupnpc/miniwget.h>
+#include <miniupnpc/upnpcommands.h>
#include <stdlib.h>
@@ -131,7 +131,11 @@
GetUPNPUrls(&urls, &data, dev->get_description_url().utf8().get_data(), 0);
char addr[16];
+#if (MINIUPNPC_API_VERSION >= 18)
+ int i = UPNP_GetValidIGD(devlist, &urls, &data, (char *)&addr, 16, nullptr, 0);
+#else
int i = UPNP_GetValidIGD(devlist, &urls, &data, (char *)&addr, 16);
+#endif
if (i != 1) {
FreeUPNPUrls(&urls);