Include endian.h when handling BYTE_ORDER
authorUlf Hermann <ulf.hermann@qt.io>
Thu, 20 Apr 2017 15:07:37 +0000 (17:07 +0200)
committerMark Wielaard <mark@klomp.org>
Wed, 26 Apr 2017 15:19:21 +0000 (17:19 +0200)
BYTE_ORDER and friends are customarily defined in endian.h.

Signed-off-by: Ulf Hermann <ulf.hermann@qt.io>
libdw/ChangeLog
libdw/dwarf_begin_elf.c

index 3f63a17..19bcc9b 100644 (file)
@@ -1,3 +1,7 @@
+2017-04-20  Ulf Hermann  <ulf.hermann@qt.io>
+
+       * dwarf_begin_elf.c: Include endian.h.
+
 2017-03-30  Mark Wielaard  <mjw@redhat.com>
 
        * dwarf_peel_type.c (dwarf_peel_type): Call dwarf_attr_integrate on
index 6f25e42..afa15ce 100644 (file)
@@ -41,6 +41,7 @@
 #include <sys/types.h>
 #include <sys/stat.h>
 #include <fcntl.h>
+#include <endian.h>
 
 #include "libdwP.h"