From 0007638b54f3741e5a5e09235fed1e96a511f245 Mon Sep 17 00:00:00 2001 From: Bernhard Reutner-Fischer Date: Sat, 23 Feb 2013 09:54:02 +0100 Subject: libubacktrace: use libgcc_s.h for consistency Signed-off-by: Bernhard Reutner-Fischer --- libubacktrace/arm/backtrace.c | 5 +++-- libubacktrace/backtrace.c | 5 +++-- 2 files changed, 6 insertions(+), 4 deletions(-) (limited to 'libubacktrace') diff --git a/libubacktrace/arm/backtrace.c b/libubacktrace/arm/backtrace.c index 8c8e2a2e2..c154496a7 100644 --- a/libubacktrace/arm/backtrace.c +++ b/libubacktrace/arm/backtrace.c @@ -12,6 +12,7 @@ * */ +#include #include #include #include @@ -34,11 +35,11 @@ static _Unwind_VRS_Result (*unwind_vrs_get) (_Unwind_Context *, static void backtrace_init (void) { - void *handle = dlopen ("libgcc_s.so.1", RTLD_LAZY); + void *handle = dlopen (LIBGCC_S_SO, RTLD_LAZY); if (handle == NULL || ((unwind_backtrace = dlsym (handle, "_Unwind_Backtrace")) == NULL) || ((unwind_vrs_get = dlsym (handle, "_Unwind_VRS_Get")) == NULL)) { - printf("libgcc_s.so.1 must be installed for backtrace to work\n"); + printf(LIBGCC_S_SO " must be installed for backtrace to work\n"); abort(); } } diff --git a/libubacktrace/backtrace.c b/libubacktrace/backtrace.c index fdd5981fa..0a72bae5e 100644 --- a/libubacktrace/backtrace.c +++ b/libubacktrace/backtrace.c @@ -20,6 +20,7 @@ * */ +#include #include #include #include @@ -38,12 +39,12 @@ static _Unwind_Ptr (*unwind_getip) (struct _Unwind_Context *); static void backtrace_init (void) { - void *handle = dlopen ("libgcc_s.so.1", RTLD_LAZY); + void *handle = dlopen (LIBGCC_S_SO, RTLD_LAZY); if (handle == NULL || ((unwind_backtrace = dlsym (handle, "_Unwind_Backtrace")) == NULL) || ((unwind_getip = dlsym (handle, "_Unwind_GetIP")) == NULL)) { - printf("libgcc_s.so.1 must be installed for backtrace to work\n"); + printf(LIBGCC_S_SO " must be installed for backtrace to work\n"); abort(); } } -- cgit v1.2.3