summaryrefslogtreecommitdiff
path: root/m4/efl_threads.m4
diff options
context:
space:
mode:
authorDaniel Kolesa <d.kolesa@osg.samsung.com>2015-09-11 13:37:53 +0100
committerDaniel Kolesa <d.kolesa@osg.samsung.com>2015-09-11 13:50:03 +0100
commit8f62e4f7cef8ddc7caec5567e012c59cb44f68c3 (patch)
treec765afc704b5fc580560df04b8197d0d988c7206 /m4/efl_threads.m4
parent14b2ba7bed1409d7f95665bb0f1122714c5b444a (diff)
eina_thread: non-linux fixes following latest changes
Diffstat (limited to '')
-rw-r--r--m4/efl_threads.m410
1 files changed, 10 insertions, 0 deletions
diff --git a/m4/efl_threads.m4 b/m4/efl_threads.m4
index 4ed9ff25a9..52631f7c1a 100644
--- a/m4/efl_threads.m4
+++ b/m4/efl_threads.m4
@@ -56,6 +56,9 @@ pthread_barrier_init(&barrier, NULL, 1);
56#include <stdlib.h> 56#include <stdlib.h>
57#include <pthread.h> 57#include <pthread.h>
58#include <sched.h> 58#include <sched.h>
59#ifndef __linux__
60#include <pthread_np.h>
61#endif
59 ]], 62 ]],
60 [[ 63 [[
61pthread_attr_setaffinity_np(NULL, 0, NULL); 64pthread_attr_setaffinity_np(NULL, 0, NULL);
@@ -67,9 +70,16 @@ pthread_attr_setaffinity_np(NULL, 0, NULL);
67#define _GNU_SOURCE 70#define _GNU_SOURCE
68#include <stdlib.h> 71#include <stdlib.h>
69#include <pthread.h> 72#include <pthread.h>
73#ifndef __linux__
74#include <pthread_np.h>
75#endif
70 ]], 76 ]],
71 [[ 77 [[
78#ifndef __linux__
79pthread_set_name_np(NULL, NULL);
80#else
72pthread_setname_np(NULL, NULL); 81pthread_setname_np(NULL, NULL);
82#endif
73 ]])], 83 ]])],
74 [efl_have_setname="yes"], 84 [efl_have_setname="yes"],
75 [efl_have_setname="no"]) 85 [efl_have_setname="no"])