From: Gabriel Corona Date: Mon, 10 Feb 2014 10:11:09 +0000 (+0100) Subject: [mc] Use optimized local implementation of libuwind (UNW_LOCAL_ONLY) X-Git-Tag: v3_11~199^2~2^2~24^2~17 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/ec661ad089d4bf0eb28490be1a1fc32e86061351 [mc] Use optimized local implementation of libuwind (UNW_LOCAL_ONLY) --- diff --git a/src/include/mc/datatypes.h b/src/include/mc/datatypes.h index d9095c07d7..ddcb573dcd 100644 --- a/src/include/mc/datatypes.h +++ b/src/include/mc/datatypes.h @@ -6,6 +6,9 @@ #ifndef MC_DATATYPE_H #define MC_DATATYPE_H + +#define UNW_LOCAL_ONLY + #include "xbt/misc.h" #include "xbt/swag.h" #include "xbt/fifo.h" diff --git a/src/mc/mc_checkpoint.c b/src/mc/mc_checkpoint.c index 035e6b5b8e..968f5ad6b3 100644 --- a/src/mc/mc_checkpoint.c +++ b/src/mc/mc_checkpoint.c @@ -5,6 +5,8 @@ * under the terms of the license (GNU LGPL) which comes with this package. */ #define _GNU_SOURCE +#define UNW_LOCAL_ONLY + #include #include #include "mc_private.h" diff --git a/src/xbt/backtrace_linux.c b/src/xbt/backtrace_linux.c index da9ced5c44..b7cb1deb67 100644 --- a/src/xbt/backtrace_linux.c +++ b/src/xbt/backtrace_linux.c @@ -13,6 +13,7 @@ #include "xbt/module.h" /* xbt_binary_name */ #include "xbt_modinter.h" /* backtrace initialization headers */ #ifdef HAVE_MC +#define UNW_LOCAL_ONLY #include #endif /* end of "useless" inclusions */