--- a/hedgewars/uPhysFSLayer.pas Sun Nov 18 19:33:15 2012 +0100
+++ b/hedgewars/uPhysFSLayer.pas Mon Nov 19 00:49:24 2012 +0100
@@ -7,6 +7,10 @@
{$LINKLIB ../bin/libphysfsrwops.a}
{$ENDIF}
+{$IFDEF DARWIN}
+ {$LINKFRAMEWORK IOKit}
+{$ENDIF}
+
interface
uses SDLh;
--- a/hedgewars/uScript.pas Sun Nov 18 19:33:15 2012 +0100
+++ b/hedgewars/uScript.pas Mon Nov 19 00:49:24 2012 +0100
@@ -1980,7 +1980,7 @@
// custom script loader via physfs, passed to lua_load
const BUFSIZE = 1024;
-var physfsReaderBuffer: pointer; external;
+var physfsReaderBuffer: pointer; cvar; external;
function physfsReader(L: Plua_State; f: PFSFile; sz: Psize_t) : PChar; cdecl; external;