diff options
author | Daniel Kolesa <d.kolesa@osg.samsung.com> | 2015-09-11 13:37:53 +0100 |
---|---|---|
committer | Daniel Kolesa <d.kolesa@osg.samsung.com> | 2015-09-11 13:50:03 +0100 |
commit | 8f62e4f7cef8ddc7caec5567e012c59cb44f68c3 (patch) | |
tree | c765afc704b5fc580560df04b8197d0d988c7206 /m4 | |
parent | 14b2ba7bed1409d7f95665bb0f1122714c5b444a (diff) |
eina_thread: non-linux fixes following latest changes
Diffstat (limited to 'm4')
-rw-r--r-- | m4/efl_threads.m4 | 10 |
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); #include <stdlib.h> #include <pthread.h> #include <sched.h> +#ifndef __linux__ +#include <pthread_np.h> +#endif ]], [[ pthread_attr_setaffinity_np(NULL, 0, NULL); @@ -67,9 +70,16 @@ pthread_attr_setaffinity_np(NULL, 0, NULL); #define _GNU_SOURCE #include <stdlib.h> #include <pthread.h> +#ifndef __linux__ +#include <pthread_np.h> +#endif ]], [[ +#ifndef __linux__ +pthread_set_name_np(NULL, NULL); +#else pthread_setname_np(NULL, NULL); +#endif ]])], [efl_have_setname="yes"], [efl_have_setname="no"]) |