X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=src%2Fruntime%2Fbacktrace.c;h=98189b91a883d27d892753467b1976db71a525eb;hb=cc32d78e47dfcad7634e26e69797094ed683a888;hp=e7420e93e620cac8625d7d45fe38a4c9fc7fe6f3;hpb=4023b1bec2412344e5eea4a33cd85dd662149c67;p=sbcl.git diff --git a/src/runtime/backtrace.c b/src/runtime/backtrace.c index e7420e9..98189b9 100644 --- a/src/runtime/backtrace.c +++ b/src/runtime/backtrace.c @@ -34,9 +34,11 @@ #include "thread.h" #ifdef LISP_FEATURE_OS_PROVIDES_DLADDR +# ifndef __USE_GNU /* __USE_GNU needed if we want dladdr() and Dl_Info from glibc. */ -#define __USE_GNU -#include "dlfcn.h" +# define __USE_GNU +# endif +# include "dlfcn.h" #endif #if !(defined(LISP_FEATURE_X86) || defined(LISP_FEATURE_X86_64))