Skip to content

Commit

Permalink
Merge pull request #475 from ffontaine/master
Browse files Browse the repository at this point in the history
src/symbolize.cc: fix build without dlfcn.h
  • Loading branch information
sergiud authored Oct 31, 2019
2 parents 4cc89c9 + 10498b4 commit 1655f4f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/symbolize.cc
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,9 @@ _END_GOOGLE_NAMESPACE_

#if defined(__ELF__)

#if defined(HAVE_DLFCN_H)
#include <dlfcn.h>
#endif
#if defined(OS_OPENBSD)
#include <sys/exec_elf.h>
#else
Expand Down Expand Up @@ -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 <dlfcn.h>
#include <string.h>
Expand Down

0 comments on commit 1655f4f

Please sign in to comment.