Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
load execinfo.h when available
authormquinson <mquinson@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Sun, 7 Aug 2005 23:07:56 +0000 (23:07 +0000)
committermquinson <mquinson@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Sun, 7 Aug 2005 23:07:56 +0000 (23:07 +0000)
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@1633 48e7efb5-ca39-0410-a469-dd3cf9ba447f

src/portable.h

index 9a6acb3..8db6630 100644 (file)
@@ -170,4 +170,11 @@ extern int vasnprintf(char **ptr, size_t str_m, const char *fmt, va_list ap);
 #  define PRINTF_STR(a) (a)?:"(null)"
 #endif
 
+/*
+ * What we need to extract the backtrace in exception handling code
+ */
+#ifdef HAVE_EXECINFO_H
+#  include <execinfo.h>
+#endif
+
 #endif /* GRAS_PORTABLE_H */