mirror of
https://github.com/tobast/libunwind-eh_elf.git
synced 2025-02-18 02:51:41 +01:00
Fix a build error
<elf.h> needs to be included before the check for ELF_CLASS.
This commit is contained in:
parent
5eba0f816d
commit
d41a453bbf
1 changed files with 2 additions and 2 deletions
|
@ -30,6 +30,8 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
|
||||||
#include <sys/mman.h>
|
#include <sys/mman.h>
|
||||||
#include <sys/stat.h>
|
#include <sys/stat.h>
|
||||||
|
|
||||||
|
#include "libunwind_i.h"
|
||||||
|
|
||||||
#if ELF_CLASS == ELFCLASS32
|
#if ELF_CLASS == ELFCLASS32
|
||||||
# define ELF_W(x) ELF32_##x
|
# define ELF_W(x) ELF32_##x
|
||||||
# define Elf_W(x) Elf32_##x
|
# define Elf_W(x) Elf32_##x
|
||||||
|
@ -40,8 +42,6 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
|
||||||
# define elf_w(x) _Uelf64_##x
|
# define elf_w(x) _Uelf64_##x
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include "libunwind_i.h"
|
|
||||||
|
|
||||||
extern int elf_w (get_proc_name) (unw_addr_space_t as,
|
extern int elf_w (get_proc_name) (unw_addr_space_t as,
|
||||||
pid_t pid, unw_word_t ip,
|
pid_t pid, unw_word_t ip,
|
||||||
char *buf, size_t len,
|
char *buf, size_t len,
|
||||||
|
|
Loading…
Add table
Reference in a new issue