forked from enlightenment/efl
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:
parent
634715a2ca
commit
a7e8dff3e4
|
@ -69,6 +69,12 @@
|
||||||
#include "eina_stringshare.h"
|
#include "eina_stringshare.h"
|
||||||
#include "eina_debug_private.h"
|
#include "eina_debug_private.h"
|
||||||
|
|
||||||
|
#ifdef EINA_HAVE_PTHREAD_SETNAME
|
||||||
|
# ifndef __linux__
|
||||||
|
# include <pthread_np.h>
|
||||||
|
# endif
|
||||||
|
#endif
|
||||||
|
|
||||||
#if defined(__CYGWIN__) || defined (_WIN32)
|
#if defined(__CYGWIN__) || defined (_WIN32)
|
||||||
# define LIBEXT ".dll"
|
# define LIBEXT ".dll"
|
||||||
#else
|
#else
|
||||||
|
|
|
@ -24,6 +24,12 @@
|
||||||
#include "eina_evlog.h"
|
#include "eina_evlog.h"
|
||||||
#include "eina_debug_private.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_reset = 0;
|
||||||
volatile int _eina_debug_sysmon_active = 0;
|
volatile int _eina_debug_sysmon_active = 0;
|
||||||
volatile int _eina_debug_evlog_active = 0;
|
volatile int _eina_debug_evlog_active = 0;
|
||||||
|
|
Loading…
Reference in New Issue