Author: wade
Date: 2007-08-20 14:42:13 -0400 (Mon, 20 Aug 2007)
New Revision: 84482
Modified:
trunk/mono/mono/io-layer/ChangeLog
trunk/mono/mono/io-layer/processes.c
Log:
2007-08-20 Wade Berrier <[EMAIL PROTECTED]>
* processes.c: include sys/resource.h for rusage to fix
mac 10.3 build
Modified: trunk/mono/mono/io-layer/ChangeLog
===================================================================
--- trunk/mono/mono/io-layer/ChangeLog 2007-08-20 18:39:25 UTC (rev 84481)
+++ trunk/mono/mono/io-layer/ChangeLog 2007-08-20 18:42:13 UTC (rev 84482)
@@ -1,4 +1,8 @@
+2007-08-20 Wade Berrier <[EMAIL PROTECTED]>
+ * processes.c: include sys/resource.h for rusage to fix
+ mac 10.3 build
+
Mon Aug 20 12:36:42 CEST 2007 Paolo Molaro <[EMAIL PROTECTED]>
* processes.c: implemented query for user/system times using
Modified: trunk/mono/mono/io-layer/processes.c
===================================================================
--- trunk/mono/mono/io-layer/processes.c 2007-08-20 18:39:25 UTC (rev
84481)
+++ trunk/mono/mono/io-layer/processes.c 2007-08-20 18:42:13 UTC (rev
84482)
@@ -20,6 +20,11 @@
#include <sys/wait.h>
#include <fcntl.h>
+/* sys/resource.h (for rusage) is required when using osx 10.3 (but not 10.4)
*/
+#ifdef __APPLE__
+#include <sys/resource.h>
+#endif
+
#include <mono/io-layer/wapi.h>
#include <mono/io-layer/wapi-private.h>
#include <mono/io-layer/handles-private.h>
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches