Include Apple headers.
MODIFY
utils/afl_frida/afl-frida.c
utils/afl_frida/afl-frida.c
#include <sys/shm.h>
#include <dlfcn.h>
-#ifndef __APPLE__
+#ifdef __APPLE__
+ #include <mach/mach.h>
+ #include <mach-o/dyld_images.h>
+#else
#include <sys/wait.h>
#include <sys/personality.h>
#endif

Include Apple headers.