File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 213213#include < sys/stat.h>
214214#include < syscall.h>
215215#include < unistd.h>
216+ #ifndef _GNU_SOURCE
217+ #define _GNU_SOURCE
218+ #include < dlfcn.h>
219+ #undef _GNU_SOURCE
220+ #else
221+ #include < dlfcn.h>
222+ #endif
216223
217224#if BACKWARD_HAS_BFD == 1
218225// NOTE: defining PACKAGE{,_VERSION} is required before including
225232#define PACKAGE_VERSION
226233#endif
227234#include < bfd.h>
228- #ifndef _GNU_SOURCE
229- #define _GNU_SOURCE
230- #include < dlfcn.h>
231- #undef _GNU_SOURCE
232- #else
233- #include < dlfcn.h>
234- #endif
235235#endif
236236
237237#if BACKWARD_HAS_DW == 1
246246#include < libdwarf.h>
247247#include < libelf.h>
248248#include < map>
249- #ifndef _GNU_SOURCE
250- #define _GNU_SOURCE
251- #include < dlfcn.h>
252- #undef _GNU_SOURCE
253- #else
254- #include < dlfcn.h>
255- #endif
256249#endif
257250
258251#if (BACKWARD_HAS_BACKTRACE == 1) || (BACKWARD_HAS_BACKTRACE_SYMBOL == 1)
You can’t perform that action at this time.
0 commit comments