issue #588, part 2
This commit is contained in:
parent
6f90124d82
commit
3df5a6e2b6
|
@ -221,6 +221,14 @@
|
||||||
#include <sys/stat.h>
|
#include <sys/stat.h>
|
||||||
#include <syscall.h>
|
#include <syscall.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
|
// https://github.com/tildearrow/furnace/issues/588
|
||||||
|
#ifndef _GNU_SOURCE
|
||||||
|
#define _GNU_SOURCE
|
||||||
|
#include <dlfcn.h>
|
||||||
|
#undef _GNU_SOURCE
|
||||||
|
#else
|
||||||
|
#include <dlfcn.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
#if BACKWARD_HAS_BFD == 1
|
#if BACKWARD_HAS_BFD == 1
|
||||||
// NOTE: defining PACKAGE{,_VERSION} is required before including
|
// NOTE: defining PACKAGE{,_VERSION} is required before including
|
||||||
|
@ -233,13 +241,6 @@
|
||||||
#define PACKAGE_VERSION
|
#define PACKAGE_VERSION
|
||||||
#endif
|
#endif
|
||||||
#include <bfd.h>
|
#include <bfd.h>
|
||||||
#ifndef _GNU_SOURCE
|
|
||||||
#define _GNU_SOURCE
|
|
||||||
#include <dlfcn.h>
|
|
||||||
#undef _GNU_SOURCE
|
|
||||||
#else
|
|
||||||
#include <dlfcn.h>
|
|
||||||
#endif
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if BACKWARD_HAS_DW == 1
|
#if BACKWARD_HAS_DW == 1
|
||||||
|
@ -254,13 +255,6 @@
|
||||||
#include <libdwarf.h>
|
#include <libdwarf.h>
|
||||||
#include <libelf.h>
|
#include <libelf.h>
|
||||||
#include <map>
|
#include <map>
|
||||||
#ifndef _GNU_SOURCE
|
|
||||||
#define _GNU_SOURCE
|
|
||||||
#include <dlfcn.h>
|
|
||||||
#undef _GNU_SOURCE
|
|
||||||
#else
|
|
||||||
#include <dlfcn.h>
|
|
||||||
#endif
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if (BACKWARD_HAS_BACKTRACE == 1) || (BACKWARD_HAS_BACKTRACE_SYMBOL == 1)
|
#if (BACKWARD_HAS_BACKTRACE == 1) || (BACKWARD_HAS_BACKTRACE_SYMBOL == 1)
|
||||||
|
|
Loading…
Reference in New Issue