Solaris/Illumos build fix.
MODIFY
include/afl-fuzz.h
include/afl-fuzz.h
#include <kstat.h>
#include <sys/sysinfo.h>
#include <sys/pset.h>
+ #include <strings.h>
#endif
#endif /* __linux__ */

MODIFY
src/afl-cc.c
src/afl-cc.c
@@ -837,7 +837,7 @@ static void edit_params(u32 argc, char **argv, char **envp) {
}
- #ifndef __APPLE__
+ #if !defined(__APPLE__) && !defined(__sun)
if (!shared_linking)
cc_params[cc_par_cnt++] =
alloc_printf("-Wl,--dynamic-list=%s/dynamic_list.txt", obj_path);

MODIFY
src/afl-fuzz-init.c
src/afl-fuzz-init.c
@@ -355,7 +355,7 @@ void bind_to_free_cpu(afl_state_t *afl) {
if (ncpus > sizeof(cpu_used)) ncpus = sizeof(cpu_used);
- for (i = 0; i < ncpus; i++) {
+ for (i = 0; i < (s32)ncpus; i++) {
k = kstat_lookup(m, "cpu_stat", i, NULL);
if (kstat_read(m, k, &cs)) {

Solaris/Illumos build fix. (#609)