diff options
author | Francesco Del Degan <f.deldegan@pr0gg3d.net> | 2015-05-25 09:10:18 +0200 |
---|---|---|
committer | Francesco Del Degan <f.deldegan@pr0gg3d.net> | 2015-05-25 09:37:14 +0200 |
commit | e7c0d41dd259a56cb36b5815e04d8cfe4f837fbc (patch) | |
tree | 7c6729edacc8f4c7c9a9c2ad0c5066e219ccf01f /example/ndpiReader.c | |
parent | 4cded5dc98c06722d801b248a5028d5bf115ab02 (diff) |
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); |