eina_thread.c: fix include guard.

DragonFlyBSD has pthread_setname_np but no pthread_setaffinity_np;
we still need to include pthread_np though.

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
This commit is contained in:
Benjamin Jacobs 2016-06-06 11:23:09 -07:00 committed by Cedric BAIL
parent 35bae18e43
commit 731e88061a
1 changed files with 3 additions and 3 deletions

View File

@ -32,10 +32,10 @@
#include "eina_debug.h"
# include <pthread.h>
# include <errno.h>
#include <pthread.h>
#include <errno.h>
#ifdef EINA_HAVE_PTHREAD_AFFINITY
#if defined(EINA_HAVE_PTHREAD_AFFINITY) || defined(EINA_HAVE_PTHREAD_SETNAME)
#ifndef __linux__
#include <pthread_np.h>
#define cpu_set_t cpuset_t