Porting to Haiku.

getrusage does not implement resident memory gathering, no shm api neither.
This commit is contained in:
David Carlier
2020-06-14 15:26:43 +00:00
parent bfe5b88e78
commit 67d87dd2a9
14 changed files with 40 additions and 10 deletions

View File

@ -145,7 +145,7 @@ u8 *afl_shm_init(sharedmem_t *shm, size_t map_size,
if (!non_instrumented_mode) setenv(SHM_ENV_VAR, shm->g_shm_file_path, 1);
if (shm->map == -1 || !shm->map) PFATAL("mmap() failed");
if (shm->map == (void *)-1 || !shm->map) PFATAL("mmap() failed");
#else
u8 *shm_str;