Enlightenment CVS committal

Author  : chaos
Project : e17
Module  : proto

Dir     : e17/proto/entropy/src


Modified Files:
        main.c 


Log Message:
* Wrap up the backtrace functions with GLIBC detection

===================================================================
RCS file: /cvs/e/e17/proto/entropy/src/main.c,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -3 -r1.10 -r1.11
--- main.c      18 Apr 2006 12:19:54 -0000      1.10
+++ main.c      19 Apr 2006 06:43:06 -0000      1.11
@@ -8,7 +8,10 @@
 #include "entropy_alert.h"
 #include <Ecore_X.h>
 
-/*#include <execinfo.h>*/
+#ifdef __GLIBC__
+#include <execinfo.h>
+#endif
+
 
 void
 entropy_sigseg_act(int x, siginfo_t *info, void *data)
@@ -18,9 +21,13 @@
        
    write(2, "**** SEGMENTATION FAULT ****\n", 29);
    write(2, "**** Printing Backtrace... *****\n\n", 34);
+
+#ifdef __GLIBC__
   
    size = backtrace(array, 255);
    backtrace_symbols_fd(array, size, 2);
+
+#endif
 
    ecore_x_pointer_ungrab();
    ecore_x_keyboard_ungrab();




-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to