diff options
Diffstat (limited to 'src/lib/upnp/ClientInit.cxx')
-rw-r--r-- | src/lib/upnp/ClientInit.cxx | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/lib/upnp/ClientInit.cxx b/src/lib/upnp/ClientInit.cxx index b320beb79..b2f6b3348 100644 --- a/src/lib/upnp/ClientInit.cxx +++ b/src/lib/upnp/ClientInit.cxx @@ -33,7 +33,12 @@ static unsigned upnp_client_ref; static UpnpClient_Handle upnp_client_handle; static int -UpnpClientCallback(Upnp_EventType et, void *evp, void *cookie) noexcept +UpnpClientCallback(Upnp_EventType et, +#if UPNP_VERSION >= 10800 + const +#endif + void *evp, + void *cookie) noexcept { if (cookie == nullptr) /* this is the cookie passed to UpnpRegisterClient(); |