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 15
15
16
16
#include <mach/mach_init.h>
17
17
#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>
22
18
#include <mach/mach_vm.h>
23
19
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
+
24
28
25
29
int get_memory_info (unsigned long long * rss , unsigned long long * vsize )
26
30
{
You can’t perform that action at this time.
0 commit comments