[MLton-commit] r6856

Wesley Terpstra wesley at mlton.org
Tue Sep 16 03:17:37 PDT 2008


Must include platform.h earlier or else __DARWIN_UNIX03 is not defined uniformly
----------------------------------------------------------------------

U   mlton/trunk/runtime/platform/darwin.c

----------------------------------------------------------------------

Modified: mlton/trunk/runtime/platform/darwin.c
===================================================================
--- mlton/trunk/runtime/platform/darwin.c	2008-09-16 09:59:18 UTC (rev 6855)
+++ mlton/trunk/runtime/platform/darwin.c	2008-09-16 10:17:23 UTC (rev 6856)
@@ -1,3 +1,5 @@
+#include "platform.h"
+
 #include <mach-o/getsect.h>  // for get_etext()
 #include <dlfcn.h>
 #include <stdio.h>
@@ -2,4 +4,2 @@
 
-#include "platform.h"
-
 #include "diskBack.unix.c"
@@ -49,7 +49,7 @@
 #endif
 #elif (defined(__x86_64__))
 #if __DARWIN_UNIX03
-        GC_handleSigProf ((code_pointer) ucp->uc_mcontext->__ss.rip);
+        GC_handleSigProf ((code_pointer) ucp->uc_mcontext->__ss.__rip);
 #else
         GC_handleSigProf ((code_pointer) ucp->uc_mcontext->ss.rip);
 #endif




More information about the MLton-commit mailing list