diff options
author | hexcoder <hexcoder-@users.noreply.github.com> | 2020-06-10 20:29:55 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-10 20:29:55 +0200 |
commit | a6386bd6407534c8939b2b00f590ca6213d858cf (patch) | |
tree | d6ac2e893bf7fea279b58a65bb19dbf57c1edd6e /include/afl-fuzz.h | |
parent | 5cb6dc77955bb19316859c37684cb838418392cc (diff) | |
parent | b3feda052d36aacd657b394169b90f05afdbbbde (diff) | |
download | afl++-a6386bd6407534c8939b2b00f590ca6213d858cf.tar.gz |
Merge pull request #400 from devnexen/gotcpu_illumos
start of illumos cpu binding implementation.
Diffstat (limited to 'include/afl-fuzz.h')
-rw-r--r-- | include/afl-fuzz.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/include/afl-fuzz.h b/include/afl-fuzz.h index 3b5cc0e2..f17bebd7 100644 --- a/include/afl-fuzz.h +++ b/include/afl-fuzz.h @@ -83,7 +83,7 @@ can hope... */ #if defined(__linux__) || defined(__FreeBSD__) || defined(__NetBSD__) || \ - defined(__DragonFly__) + defined(__DragonFly__) || defined(__sun) #define HAVE_AFFINITY 1 #if defined(__FreeBSD__) || defined(__DragonFly__) #include <sys/param.h> @@ -96,6 +96,11 @@ #define cpu_set_t cpuset_t #elif defined(__NetBSD__) #include <pthread.h> + #elif defined(__sun) + #include <sys/types.h> + #include <kstat.h> + #include <sys/sysinfo.h> + #include <sys/pset.h> #endif #endif /* __linux__ */ |