diff --git a/src/i_tcp.c b/src/i_tcp.c index bd960f2ca..387cf4f5e 100644 --- a/src/i_tcp.c +++ b/src/i_tcp.c @@ -117,10 +117,16 @@ } mysockaddr_t; #ifdef HAVE_MINIUPNPC + #ifdef MINIUPNP_STATICLIB #include "miniwget.h" #include "miniupnpc.h" #include "upnpcommands.h" - static UINT8 UPNP_support = TRUE; + #else + #include "miniupnpc/miniwget.h" + #include "miniupnpc/miniupnpc.h" + #include "miniupnpc/upnpcommands.h" + #endif + static boolean UPNP_support = true; #endif // HAVE_MINIUPNC #endif // !NONET