[MLton-commit] r4511

Matthew Fluet MLton@mlton.org
Tue, 9 May 2006 19:04:28 -0700


Finished first round of FreeBSD port.  (Much overlap with the Darwin
port.)  The runtime now compiles.


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

U   mlton/branches/on-20050822-x86_64-branch/runtime/platform/freebsd.c

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

Modified: mlton/branches/on-20050822-x86_64-branch/runtime/platform/freebsd.c
===================================================================
--- mlton/branches/on-20050822-x86_64-branch/runtime/platform/freebsd.c	2006-05-10 02:02:27 UTC (rev 4510)
+++ mlton/branches/on-20050822-x86_64-branch/runtime/platform/freebsd.c	2006-05-10 02:04:28 UTC (rev 4511)
@@ -23,11 +23,12 @@
         sa->sa_sigaction = (void (*)(int, siginfo_t*, void*))catcher;
 }
 
-W32 GC_totalRam (GC_state s) {
-        int mem, len;
+size_t GC_totalRam (void) {
+        unsigned int mem;
+        size_t len;
 
         len = sizeof (int);
         if (-1 == sysctlbyname ("hw.physmem", &mem, &len, NULL, 0))
                 diee ("sysctl failed");
-        return mem;
+        return (size_t)mem;
 }