summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorUlf Hermann <[email protected]>2017-03-28 16:46:09 +0200
committerUlf Hermann <[email protected]>2017-04-27 12:31:20 +0000
commitd0a1b7616a05f161d189e029bfedd8107c32cacb (patch)
tree568ab45ba5aca77745c11ce9807d8465ae825872
parent8aa093b10baaed88a8721ec02f4d07ceb40d62e5 (diff)
Include endian.h when handling BYTE_ORDER
BYTE_ORDER and friends are customarily defined in endian.h. Change-Id: Id86f02c08584201013c0f35cf179616b608526dc Reviewed-by: Christian Kandeler <[email protected]>
-rw-r--r--libdw/ChangeLog4
-rw-r--r--libdw/dwarf_begin_elf.c1
2 files changed, 5 insertions, 0 deletions
diff --git a/libdw/ChangeLog b/libdw/ChangeLog
index c9ae6640..88028531 100644
--- a/libdw/ChangeLog
+++ b/libdw/ChangeLog
@@ -1,5 +1,9 @@
2017-04-20 Ulf Hermann <[email protected]>
+ * dwarf_begin_elf.c: Include endian.h.
+
+2017-04-20 Ulf Hermann <[email protected]>
+
* libdw.h: Remove attribute macro declarations and use
__noreturn_attribute__ as defined in libelf.h.
diff --git a/libdw/dwarf_begin_elf.c b/libdw/dwarf_begin_elf.c
index 6f25e429..afa15cef 100644
--- a/libdw/dwarf_begin_elf.c
+++ b/libdw/dwarf_begin_elf.c
@@ -41,6 +41,7 @@
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
+#include <endian.h>
#include "libdwP.h"