raster pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=04848c98f217b3fa1fc2a49bce2649895e705611

commit 04848c98f217b3fa1fc2a49bce2649895e705611
Author: Vincent Torri <[email protected]>
Date:   Sun Jul 28 09:21:47 2019 +0100

    Eina: define EINA_HAVE_DEBUG_THREADS only if backtrace() in execinfo.h is 
available
    
    Summary: fix compilation on systems where backtrace() in execinfo.h is not 
available
    
    Test Plan: compilation on Windows
    
    Reviewers: zmike, cedric, raster
    
    Reviewed By: cedric, raster
    
    Subscribers: #reviewers, #committers
    
    Tags: #efl
    
    Differential Revision: https://phab.enlightenment.org/D9392
---
 src/lib/eina/meson.build | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/lib/eina/meson.build b/src/lib/eina/meson.build
index b93e46802c..7866323742 100644
--- a/src/lib/eina/meson.build
+++ b/src/lib/eina/meson.build
@@ -299,7 +299,9 @@ if cc.has_header_symbol(pthread_np_header_file, 
'pthread_attr_setaffinity_np', a
 endif
 
 if debug_threads or get_option('debug-threads')
-   eina_config.set('EINA_HAVE_DEBUG_THREADS', '1')
+   if cc.has_header_symbol('execinfo.h', 'backtrace')
+      eina_config.set('EINA_HAVE_DEBUG_THREADS', '1')
+   endif
 endif
 
 eina_config.set('EINA_SIZEOF_WCHAR_T', cc.sizeof('wchar_t',  prefix : 
'#include<wchar.h>'))

-- 


Reply via email to