diff options
author | Stephen Roberts <43952910+stephen-roberts-work@users.noreply.github.com> | 2019-02-21 19:37:16 +0000 |
---|---|---|
committer | Dave Watson <davejwatson@fb.com> | 2019-02-21 11:37:16 -0800 |
commit | 334047a04e59287463348a9e333947b5e59ddd91 (patch) | |
tree | 31b85952196d9b1a9ef35c7b69338bbfaebbd3b1 | |
parent | f90c6f08aa8337307cb5a933dd30edca570c5533 (diff) | |
download | libunwind-334047a04e59287463348a9e333947b5e59ddd91.tar.gz |
Fixed a missing dependency in dwarf-eh.h
The dwarf-eh.h header is not self-contained, which causes problems depending on which order headers are included. In particular, it references the Elf_W macro but does not include its definition. If dwarf-eh.h is included after dwarf_i.h everything works, but if you reverse this order you get compile errors. This patch removes the implicit header ordering dependency by making sure the definition of Elf_W is visible in dwarf-eh.h.
I include libunwind_i.h rather than the elfxx.h files directly because libunwind_i.h contains macro logic to choose which elf header to include, and I didn't want to duplicate that.
-rw-r--r-- | include/dwarf-eh.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/dwarf-eh.h b/include/dwarf-eh.h index e0375076..96002a1b 100644 --- a/include/dwarf-eh.h +++ b/include/dwarf-eh.h @@ -27,6 +27,7 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ #define dwarf_eh_h #include "dwarf.h" +#include "libunwind_i.h" /* This header file defines the format of a DWARF exception-header section (.eh_frame_hdr, pointed to by program-header |