Solaris/Illumos build fix. (#609)

This commit is contained in:
David CARLIER
2020-11-18 18:13:03 +00:00
committed by GitHub
parent 211a6eb411
commit b260204b72
3 changed files with 3 additions and 2 deletions

View File

@ -113,6 +113,7 @@
#include <kstat.h> #include <kstat.h>
#include <sys/sysinfo.h> #include <sys/sysinfo.h>
#include <sys/pset.h> #include <sys/pset.h>
#include <strings.h>
#endif #endif
#endif /* __linux__ */ #endif /* __linux__ */

View File

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

View File

@ -355,7 +355,7 @@ void bind_to_free_cpu(afl_state_t *afl) {
if (ncpus > sizeof(cpu_used)) ncpus = sizeof(cpu_used); 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); k = kstat_lookup(m, "cpu_stat", i, NULL);
if (kstat_read(m, k, &cs)) { if (kstat_read(m, k, &cs)) {