| 1 | Index: zzuf/trunk/src/libzzuf/lib-mem.c |
| 2 | =================================================================== |
| 3 | --- a/zzuf/trunk/src/libzzuf/lib-mem.c |
| 4 | +++ b/zzuf/trunk/src/libzzuf/lib-mem.c |
| 5 | @@ -132,8 +132,4 @@ |
| 6 | /* setrlimit(RLIMIT_AS) is ignored on OS X, we need to check memory usage |
| 7 | * from inside the process. Oh, and getrusage() doesn't work either. */ |
| 8 | -#if defined HAVE_MACH_TASK_H |
| 9 | -vm_size_t mach_page_size; |
| 10 | -#endif |
| 11 | - |
| 12 | static int memory_exceeded(void) |
| 13 | { |
| 14 | @@ -144,6 +140,5 @@ |
| 15 | if (task_info(mach_task_self(), TASK_BASIC_INFO, |
| 16 | (task_info_t)&tbi, &mmtn) == KERN_SUCCESS |
| 17 | - && (int64_t)tbi.resident_size * mach_page_size / 1048576 |
| 18 | - > (int64_t)_zz_memory) |
| 19 | + && (int64_t)tbi.resident_size / 1048576 > (int64_t)_zz_memory) |
| 20 | return 1; |
| 21 | #endif |
| 22 | @@ -157,8 +152,4 @@ |
| 23 | LOADSYM(malloc); |
| 24 | LOADSYM(realloc); |
| 25 | - |
| 26 | -#if defined HAVE_MACH_TASK_H |
| 27 | - host_page_size(mach_host_self(), &mach_page_size); |
| 28 | -#endif |
| 29 | } |
| 30 | |
| 31 | No newline at end of file |