File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 221221#include < sys/stat.h>
222222#include < syscall.h>
223223#include < unistd.h>
224+ #ifndef _GNU_SOURCE
225+ #define _GNU_SOURCE
226+ #include < dlfcn.h>
227+ #undef _GNU_SOURCE
228+ #else
229+ #include < dlfcn.h>
230+ #endif
224231
225232#if BACKWARD_HAS_BFD == 1
226233// NOTE: defining PACKAGE{,_VERSION} is required before including
233240#define PACKAGE_VERSION
234241#endif
235242#include < bfd.h>
236- #ifndef _GNU_SOURCE
237- #define _GNU_SOURCE
238- #include < dlfcn.h>
239- #undef _GNU_SOURCE
240- #else
241- #include < dlfcn.h>
242- #endif
243243#endif
244244
245245#if BACKWARD_HAS_DW == 1
254254#include < libdwarf.h>
255255#include < libelf.h>
256256#include < map>
257- #ifndef _GNU_SOURCE
258- #define _GNU_SOURCE
259- #include < dlfcn.h>
260- #undef _GNU_SOURCE
261- #else
262- #include < dlfcn.h>
263- #endif
264257#endif
265258
266259#if (BACKWARD_HAS_BACKTRACE == 1) || (BACKWARD_HAS_BACKTRACE_SYMBOL == 1)
You can’t perform that action at this time.
0 commit comments