Deal with non-executable memory on Darwin (only an issue on Darwin/x86 so far)
[ghc-hetmet.git] / ghc / rts / Main.c
index 520a757..6aef280 100644 (file)
@@ -103,7 +103,7 @@ int main(int argc, char *argv[])
     /* ToDo: want to start with a larger stack size */
     { 
        void *cap = rts_lock();
-       cap = rts_evalLazyIO(cap,(HaskellObj)mainIO_closure, NULL);
+       cap = rts_evalLazyIO(cap,(HaskellObj)(void *)mainIO_closure, NULL);
        status = rts_getSchedStatus(cap);
        rts_unlock(cap);
     }