[MLton-commit] r5814

Matthew Fluet fluet at mlton.org
Thu Aug 2 13:03:41 PDT 2007


<sys/resource.h> might not #inclulde <sys/time.h> (which defines struct timeval, used by struct rusage)
----------------------------------------------------------------------

U   mlton/trunk/runtime/platform/darwin.h
U   mlton/trunk/runtime/platform/freebsd.h
U   mlton/trunk/runtime/platform/openbsd.h

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

Modified: mlton/trunk/runtime/platform/darwin.h
===================================================================
--- mlton/trunk/runtime/platform/darwin.h	2007-08-02 19:42:17 UTC (rev 5813)
+++ mlton/trunk/runtime/platform/darwin.h	2007-08-02 20:03:40 UTC (rev 5814)
@@ -16,11 +16,11 @@
 #include <sys/mman.h>
 #include <sys/poll.h>
 #include <sys/ptrace.h>
-#include <sys/resource.h>
 #include <sys/socket.h>
 #include <sys/stat.h>
 #include <sys/sysctl.h>
 #include <sys/time.h>
+#include <sys/resource.h> /* <sys/resource.h> might not #include <sys/time.h> */
 #include <sys/times.h>
 #include <sys/un.h>
 #include <sys/utsname.h>

Modified: mlton/trunk/runtime/platform/freebsd.h
===================================================================
--- mlton/trunk/runtime/platform/freebsd.h	2007-08-02 19:42:17 UTC (rev 5813)
+++ mlton/trunk/runtime/platform/freebsd.h	2007-08-02 20:03:40 UTC (rev 5814)
@@ -14,11 +14,11 @@
 #include <pwd.h>
 #include <sys/ioctl.h>
 #include <sys/mman.h>
-#include <sys/resource.h>
 #include <sys/socket.h>
 #include <sys/stat.h>
 #include <sys/sysctl.h>
 #include <sys/time.h>
+#include <sys/resource.h> /* <sys/resource.h> might not #include <sys/time.h> */
 #include <sys/times.h>
 #include <sys/un.h>
 #include <sys/utsname.h>

Modified: mlton/trunk/runtime/platform/openbsd.h
===================================================================
--- mlton/trunk/runtime/platform/openbsd.h	2007-08-02 19:42:17 UTC (rev 5813)
+++ mlton/trunk/runtime/platform/openbsd.h	2007-08-02 20:03:40 UTC (rev 5814)
@@ -14,11 +14,11 @@
 #include <sys/ioctl.h>
 #include <sys/mman.h>
 #include <sys/param.h>
-#include <sys/resource.h>
 #include <sys/socket.h>
 #include <sys/stat.h>
 #include <sys/sysctl.h>
 #include <sys/time.h>
+#include <sys/resource.h> /* <sys/resource.h> might not #include <sys/time.h> */
 #include <sys/times.h>
 #include <sys/un.h>
 #include <sys/utsname.h>




More information about the MLton-commit mailing list