From 10498b485fe1007f8e913bf2c39ff39fe01c8dc8 Mon Sep 17 00:00:00 2001 From: Fabrice Fontaine Date: Mon, 28 Oct 2019 18:21:55 +0100 Subject: [PATCH] src/symbolize.cc: fix build without dlfcn.h Signed-off-by: Fabrice Fontaine --- src/symbolize.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/symbolize.cc b/src/symbolize.cc index 1ffc6079a..ff027f216 100644 --- a/src/symbolize.cc +++ b/src/symbolize.cc @@ -110,7 +110,9 @@ _END_GOOGLE_NAMESPACE_ #if defined(__ELF__) +#if defined(HAVE_DLFCN_H) #include +#endif #if defined(OS_OPENBSD) #include #else @@ -832,7 +834,7 @@ static ATTRIBUTE_NOINLINE bool SymbolizeAndDemangle(void *pc, char *out, _END_GOOGLE_NAMESPACE_ -#elif defined(OS_MACOSX) && defined(HAVE_DLADDR) +#elif defined(OS_MACOSX) && defined(HAVE_DLADDR) && defined(HAVE_DLFCN_H) #include #include