From ec661ad089d4bf0eb28490be1a1fc32e86061351 Mon Sep 17 00:00:00 2001 From: Gabriel Corona Date: Mon, 10 Feb 2014 11:11:09 +0100 Subject: [PATCH] [mc] Use optimized local implementation of libuwind (UNW_LOCAL_ONLY) --- src/include/mc/datatypes.h | 3 +++ src/mc/mc_checkpoint.c | 2 ++ src/xbt/backtrace_linux.c | 1 + 3 files changed, 6 insertions(+) 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 */ -- 2.20.1