diff options
author | Wez Furlong <wez@messagesystems.com> | 2012-03-24 11:38:02 -0400 |
---|---|---|
committer | Wez Furlong <wez@messagesystems.com> | 2012-03-24 11:38:02 -0400 |
commit | 08eb167b40d66da3b4a3a21351a8ed5b99fc3a83 (patch) | |
tree | 1e0461bb581838f2a9b982651a92b6ed82991aca /libelf/elf_scn.c | |
parent | 360c8b9c5c6424c753131c7253da393fa6aab71f (diff) | |
download | ctf-08eb167b40d66da3b4a3a21351a8ed5b99fc3a83.tar.gz |
always build our libelf, as our libdwarf doesn't get along with the
system libelf on linux
Diffstat (limited to 'libelf/elf_scn.c')
-rw-r--r-- | libelf/elf_scn.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libelf/elf_scn.c b/libelf/elf_scn.c index 8a2cec0..75d9bf2 100644 --- a/libelf/elf_scn.c +++ b/libelf/elf_scn.c @@ -82,8 +82,11 @@ _libelf_load_scn(Elf *e, void *ehdr) i = 0; if (!STAILQ_EMPTY(&e->e_u.e_elf.e_scn)) { +#ifndef __linux__ + /* something in here expands to "struct" and breaks compilation */ assert(STAILQ_FIRST(&e->e_u.e_elf.e_scn) == STAILQ_LAST(&e->e_u.e_elf.e_scn, _Elf_Scn, s_next)); +#endif i = 1; src += fsz; |