mirror of
https://github.com/AFLplusplus/AFLplusplus.git
synced 2025-06-14 02:58:08 +00:00
Solaris/Illumos build fix. (#609)
This commit is contained in:
@ -113,6 +113,7 @@
|
||||
#include <kstat.h>
|
||||
#include <sys/sysinfo.h>
|
||||
#include <sys/pset.h>
|
||||
#include <strings.h>
|
||||
#endif
|
||||
#endif /* __linux__ */
|
||||
|
||||
|
@ -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);
|
||||
|
@ -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)) {
|
||||
|
Reference in New Issue
Block a user