diff options
author | Luca Deri <lucaderi@users.noreply.github.com> | 2015-05-25 09:53:15 +0200 |
---|---|---|
committer | Luca Deri <lucaderi@users.noreply.github.com> | 2015-05-25 09:53:15 +0200 |
commit | 22d6e4f7c24205e4807eabd0d6adf95b68e9c6be (patch) | |
tree | 7c6729edacc8f4c7c9a9c2ad0c5066e219ccf01f /example/ndpiReader.c | |
parent | 4cded5dc98c06722d801b248a5028d5bf115ab02 (diff) | |
parent | e7c0d41dd259a56cb36b5815e04d8cfe4f837fbc (diff) |
Merge pull request #11 from pr0gg3d/dev
Add check for pthread_setaffinity_np
Diffstat (limited to 'example/ndpiReader.c')
-rw-r--r-- | example/ndpiReader.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/example/ndpiReader.c b/example/ndpiReader.c index 558d204ed..d7293f626 100644 --- a/example/ndpiReader.c +++ b/example/ndpiReader.c @@ -1662,7 +1662,7 @@ static void runPcapLoop(u_int16_t thread_id) { void *processing_thread(void *_thread_id) { long thread_id = (long) _thread_id; -#ifdef linux +#if defined(linux) && defined(HAVE_PTHREAD_SETAFFINITY_NP) if(core_affinity[thread_id] >= 0) { cpu_set_t cpuset; CPU_ZERO(&cpuset); |