Commit 10498b48 authored by Fabrice Fontaine's avatar Fabrice Fontaine

src/symbolize.cc: fix build without dlfcn.h

Signed-off-by: 's avatarFabrice Fontaine <fontaine.fabrice@gmail.com>
parent 4cc89c9e
...@@ -110,7 +110,9 @@ _END_GOOGLE_NAMESPACE_ ...@@ -110,7 +110,9 @@ _END_GOOGLE_NAMESPACE_
#if defined(__ELF__) #if defined(__ELF__)
#if defined(HAVE_DLFCN_H)
#include <dlfcn.h> #include <dlfcn.h>
#endif
#if defined(OS_OPENBSD) #if defined(OS_OPENBSD)
#include <sys/exec_elf.h> #include <sys/exec_elf.h>
#else #else
...@@ -832,7 +834,7 @@ static ATTRIBUTE_NOINLINE bool SymbolizeAndDemangle(void *pc, char *out, ...@@ -832,7 +834,7 @@ static ATTRIBUTE_NOINLINE bool SymbolizeAndDemangle(void *pc, char *out,
_END_GOOGLE_NAMESPACE_ _END_GOOGLE_NAMESPACE_
#elif defined(OS_MACOSX) && defined(HAVE_DLADDR) #elif defined(OS_MACOSX) && defined(HAVE_DLADDR) && defined(HAVE_DLFCN_H)
#include <dlfcn.h> #include <dlfcn.h>
#include <string.h> #include <string.h>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment