This is the mail archive of the
elfutils-devel@sourceware.org
mailing list for the elfutils project.
[PATCH] Include endian.h when handling BYTE_ORDER
- From: Ulf Hermann <ulf dot hermann at qt dot io>
- To: <elfutils-devel at sourceware dot org>
- Date: Thu, 20 Apr 2017 17:07:37 +0200
- Subject: [PATCH] Include endian.h when handling BYTE_ORDER
- Authentication-results: sourceware.org; auth=none
- Authentication-results: sourceware.org; dkim=none (message not signed) header.d=none;sourceware.org; dmarc=none action=none header.from=qt.io;
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qtcompany.onmicrosoft.com; s=selector1-qt-io; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=EXvXgsZIRKXT0RcK/lGnLBHMpOazt7QziR9ITb50sQg=; b=UHwJ/Q1uektgwQeO0p7BGY1xU25YpePPwpP2O8I7JPYCVRNmdN5c5uZx9VOHVNQiF/BlZdjZI8eQI8ERBviptFFbiKkVvHWZ6Y/mcixaHKDElzcOp9cPX1tPdgHNtZTNSIbKn9EQV9B8i1ISKJ2pSdE8RsqXkw86iKRxIhhMyIc=
- Spamdiagnosticmetadata: NSPM
- Spamdiagnosticoutput: 1:99
BYTE_ORDER and friends are customarily defined in endian.h.
Signed-off-by: Ulf Hermann <ulf.hermann@qt.io>
---
libdw/ChangeLog | 4 ++++
libdw/dwarf_begin_elf.c | 1 +
2 files changed, 5 insertions(+)
diff --git a/libdw/ChangeLog b/libdw/ChangeLog
index c9ae664..8802853 100644
--- a/libdw/ChangeLog
+++ b/libdw/ChangeLog
@@ -1,5 +1,9 @@
2017-04-20 Ulf Hermann <ulf.hermann@qt.io>
+ * dwarf_begin_elf.c: Include endian.h.
+
+2017-04-20 Ulf Hermann <ulf.hermann@qt.io>
+
* 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 6f25e42..afa15ce 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"
--
2.1.4