diff options
author | David Carlier <devnexen@gmail.com> | 2019-10-05 12:21:52 +0100 |
---|---|---|
committer | David Carlier <devnexen@gmail.com> | 2019-10-05 12:21:56 +0100 |
commit | 8cd7f3438f04f16c90edb85ff370f00f7f2980c4 (patch) | |
tree | 32dff4b1fd1a14f0621f49b88717fde0faa93a6a /include/afl-fuzz.h | |
parent | a8ff64f704b18567fd207fcb1e55bc5bc6f3c7c8 (diff) | |
download | afl++-8cd7f3438f04f16c90edb85ff370f00f7f2980c4.tar.gz |
bind_to_free_cpu NetBSD's turn
Diffstat (limited to 'include/afl-fuzz.h')
-rw-r--r-- | include/afl-fuzz.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/include/afl-fuzz.h b/include/afl-fuzz.h index e45a9d84..4e5276f6 100644 --- a/include/afl-fuzz.h +++ b/include/afl-fuzz.h @@ -71,14 +71,14 @@ #include <sys/ioctl.h> #include <sys/file.h> -#if defined(__APPLE__) || defined(__FreeBSD__) || defined(__OpenBSD__) +#if defined(__APPLE__) || defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__NetBSD__) #include <sys/sysctl.h> #endif /* __APPLE__ || __FreeBSD__ || __OpenBSD__ */ /* For systems that have sched_setaffinity; right now just Linux, but one can hope... */ -#if defined(__linux__) || defined(__FreeBSD__) +#if defined(__linux__) || defined(__FreeBSD__) || defined(__NetBSD__) #define HAVE_AFFINITY 1 #if defined(__FreeBSD__) #include <sys/cpuset.h> @@ -86,6 +86,8 @@ #include <pthread.h> #include <pthread_np.h> #define cpu_set_t cpuset_t +#elif defined(__NetBSD__) +#include <pthread.h> #endif #endif /* __linux__ */ |