Created
December 25, 2016 14:09
-
-
Save kimuraw/30d66656928a0c3bd0380a00608e7388 to your computer and use it in GitHub Desktop.
ruby-2.4.0: `make` and `make test` passed on OS X 10.6 Snow Leopard (i386)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/ext/-test-/memory_status/memory_status.c b/ext/-test-/memory_status/memory_status.c | |
index 80e2648..8466609 100644 | |
--- a/ext/-test-/memory_status/memory_status.c | |
+++ b/ext/-test-/memory_status/memory_status.c | |
@@ -18,11 +18,11 @@ read_status(VALUE self) | |
VALUE rss; | |
kern_return_t error; | |
mach_msg_type_number_t out_count; | |
- mach_task_basic_info_data_t taskinfo; | |
+ task_basic_info_data_t taskinfo; | |
taskinfo.virtual_size = 0; | |
- out_count = MACH_TASK_BASIC_INFO_COUNT; | |
- error = task_info(mach_task_self(), MACH_TASK_BASIC_INFO, | |
+ out_count = TASK_BASIC_INFO_COUNT; | |
+ error = task_info(mach_task_self(), TASK_BASIC_INFO, | |
(task_info_t)&taskinfo, &out_count); | |
if (error != KERN_SUCCESS) return Qnil; | |
size = ULL2NUM(taskinfo.virtual_size); |
ruby trunk r57180 fixes this problem.
macports' port:ruby24-2.4.0_1 that applied the change gets success to build on OS X 10.7/10.6.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
test-all result: