diff options
author | van Hauser <vh@thc.org> | 2019-10-05 16:21:06 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-10-05 16:21:06 +0200 |
commit | 16551643b30f389fb7b0df1a8bd69c69ef856411 (patch) | |
tree | 2659d8b5c2a6b12cad889ebdb687f69bae8664bd /include | |
parent | 5245ed22629260416e6d30cc80e18552d4481c23 (diff) | |
parent | 8cd7f3438f04f16c90edb85ff370f00f7f2980c4 (diff) | |
download | afl++-16551643b30f389fb7b0df1a8bd69c69ef856411.tar.gz |
Merge pull request #76 from devnexen/bind_to_cpu_nbsd
bind_to_free_cpu NetBSD's turn
Diffstat (limited to 'include')
-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__ */ |