DEADSOFTWARE

fix link libraries on osx
[d2df-sdl.git] / src / lib / miniupnpc / miniupnpc.pas
index 37ced0cec0b51278e0733b8e12e56b98cc2fb8f0..c8ad676fcd912155a3f3e5f594e7ea32059bd08a 100644 (file)
@@ -25,7 +25,8 @@ interface
     {$DEFINE MINIUPNPC_IMPL := cdecl; external 'miniupnpc.dll'}
   {$ENDIF}
 {$ELSE}
-  {$DEFINE MINIUPNPC_IMPL := cdecl; external 'miniupnpc'}
+  {$LINKLIB libminiupnpc}
+  {$DEFINE MINIUPNPC_IMPL := cdecl; external 'libminiupnpc'}
 {$ENDIF}
 
 const MINIUPNPC_URL_MAXSIZE=128;
@@ -95,6 +96,7 @@ function upnpDiscover(
       minissdpdsock:pchar;
       sameport:integer;
          IPV6:integer;
+    ttl:shortint;
          error:pinteger):PUPNPDev; MINIUPNPC_IMPL;