File tree Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change 1515
1616#include <mach/mach_init.h>
1717#include <mach/task.h>
18- // Compiler warns that shared_memory_server.h is deprecated, use this instead.
19- // But this doesn't define SHARED_DATA_REGION_SIZE or SHARED_TEXT_REGION_SIZE.
20- //#include <mach/shared_region.h>
21- #include <mach/shared_memory_server.h>
2218#include <mach/mach_vm.h>
2319
20+ // The compiler warns that mach/shared_memory_server.h is deprecated, and to use
21+ // mach/shared_region.h instead. But that doesn't define
22+ // SHARED_DATA_REGION_SIZE or SHARED_TEXT_REGION_SIZE, so redefine them here and
23+ // avoid a warning message when running tests.
24+ #define GLOBAL_SHARED_TEXT_SEGMENT 0x90000000U
25+ #define SHARED_DATA_REGION_SIZE 0x10000000
26+ #define SHARED_TEXT_REGION_SIZE 0x10000000
27+
2428
2529int get_memory_info (unsigned long long * rss , unsigned long long * vsize )
2630{
You can’t perform that action at this time.
0 commit comments