ports/net-p2p/amule/files/patch-src_UPnPBase.h
Barbara Guida aac77bdeb8 Fix build with upnp 1.8.x.
PR:	203827
Submitted by:Tobias Kortkamp <tobik@freebsd.org>
2019-04-22 00:44:34 +00:00

18 lines
356 B
C++

--- src/UPnPBase.h.orig 2016-09-16 07:55:07 UTC
+++ src/UPnPBase.h
@@ -489,9 +489,15 @@ public:
// Callback function
static int Callback(
+#if UPNP_VERSION >= 10800
+ Upnp_EventType_e EventType,
+ const void *Event,
+ void *Cookie);
+#else
Upnp_EventType EventType,
void* Event,
void* Cookie);
+#endif
private:
void OnEventReceived(