diff options
| author | Mark Wielaard <[email protected]> | 2020-07-05 00:13:35 +0200 |
|---|---|---|
| committer | Mark Wielaard <[email protected]> | 2020-07-18 01:50:01 +0200 |
| commit | f9915d3f1947e6bcf9102329500626bd8e74bdd3 (patch) | |
| tree | 795040c5e5bb4a25d4fc3e5a78a2714247baa708 /libasm | |
| parent | 8de6f9af46f12fe3b2a0871523f6df13c4b39e34 (diff) | |
libasm: Make libasm.h include work without relying on any other include.
The public headers should be usable when includes as is.
libasm.h wasn't because it was using gelf.h data structures without
include gelf.h. Include it now in libasm.h.
Add a new testcase run-test-includes.sh to test all public headers
can be included "standalone".
https://sourceware.org/bugzilla/show_bug.cgi?id=26176
Signed-off-by: Mark Wielaard <[email protected]>
Diffstat (limited to 'libasm')
| -rw-r--r-- | libasm/ChangeLog | 4 | ||||
| -rw-r--r-- | libasm/libasm.h | 1 |
2 files changed, 5 insertions, 0 deletions
diff --git a/libasm/ChangeLog b/libasm/ChangeLog index 2c092abe..8ed7fc20 100644 --- a/libasm/ChangeLog +++ b/libasm/ChangeLog @@ -1,3 +1,7 @@ +2020-07-05 Mark Wielaard <[email protected]> + + * libasm.h: Include gelf.h. + 2020-04-25 Mark Wielaard <[email protected]> * asm_end.c (text_end): Call fflush instead of fclose. diff --git a/libasm/libasm.h b/libasm/libasm.h index a45c9fa3..b67b77dc 100644 --- a/libasm/libasm.h +++ b/libasm/libasm.h @@ -31,6 +31,7 @@ #include <stdbool.h> #include <stdint.h> +#include <gelf.h> typedef struct ebl Ebl; |
