eina: fix implicit declaration of pthread_set_name_np in eina_debug.

Summary: Checks and includes necessary headers (FreeBSD et. al)

Reviewers: cedric

Subscribers: jpeg

Differential Revision: https://phab.enlightenment.org/D4949

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
This commit is contained in:
Al Poole 2017-06-08 13:36:23 -07:00 committed by Cedric BAIL
parent 634715a2ca
commit a7e8dff3e4
2 changed files with 12 additions and 0 deletions

View File

@ -69,6 +69,12 @@
#include "eina_stringshare.h"
#include "eina_debug_private.h"
#ifdef EINA_HAVE_PTHREAD_SETNAME
# ifndef __linux__
# include <pthread_np.h>
# endif
#endif
#if defined(__CYGWIN__) || defined (_WIN32)
# define LIBEXT ".dll"
#else

View File

@ -24,6 +24,12 @@
#include "eina_evlog.h"
#include "eina_debug_private.h"
#ifdef EINA_HAVE_PTHREAD_SETNAME
# ifndef __linux__
# include <pthread_np.h>
# endif
#endif
volatile int _eina_debug_sysmon_reset = 0;
volatile int _eina_debug_sysmon_active = 0;
volatile int _eina_debug_evlog_active = 0;