X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=rts%2FMain.c;h=c7a559fc14285144566f7e2ed0b6ad70b67b9808;hb=7d9eb2e45b4a9ff4cb053b1ec37602be88528b62;hp=58d3f37919980a49f8a6059045db4e14c6f4f109;hpb=fa00cc50ecd1aa292657720b7594b7bdb82c970c;p=ghc-hetmet.git diff --git a/rts/Main.c b/rts/Main.c index 58d3f37..c7a559f 100644 --- a/rts/Main.c +++ b/rts/Main.c @@ -11,19 +11,14 @@ * * ---------------------------------------------------------------------------*/ +#include "PosixSource.h" #include "Rts.h" #include "RtsMain.h" -/* The symbol for the Haskell Main module's init function. It is safe to refer - * to it here because this Main.o object file will only be linked in if we are - * linking a Haskell program that uses a Haskell Main.main function. - */ -extern void __stginit_ZCMain(void); - /* Similarly, we can refer to the ZCMain_main_closure here */ extern StgClosure ZCMain_main_closure; int main(int argc, char *argv[]) { - return hs_main(argc, argv, &__stginit_ZCMain, &ZCMain_main_closure); + return hs_main(argc, argv, &ZCMain_main_closure); }