This is the mail archive of the
binutils-cvs@sourceware.org
mailing list for the binutils project.
[binutils-gdb] Fix macro redefinition error on Solaris
- From: Alan Modra <amodra at sourceware dot org>
- To: bfd-cvs at sourceware dot org
- Date: 9 Feb 2016 05:11:56 -0000
- Subject: [binutils-gdb] Fix macro redefinition error on Solaris
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=24f5f69a8a1d09c317a5f28d324fca73a8a0b930
commit 24f5f69a8a1d09c317a5f28d324fca73a8a0b930
Author: Alan Modra <amodra@gmail.com>
Date: Tue Feb 9 12:52:02 2016 +1030
Fix macro redefinition error on Solaris
PR 16583
* elf/common.h (AT_SUN_HWCAP): Undef before defining.
Diff:
---
include/ChangeLog | 5 +++++
include/elf/common.h | 1 +
2 files changed, 6 insertions(+)
diff --git a/include/ChangeLog b/include/ChangeLog
index b637fc9..a87610d 100644
--- a/include/ChangeLog
+++ b/include/ChangeLog
@@ -1,3 +1,8 @@
+2016-02-09 Alan Modra <amodra@gmail.com>
+
+ PR 16583
+ * elf/common.h (AT_SUN_HWCAP): Undef before defining.
+
2016-02-04 Nick Clifton <nickc@redhat.com>
PR target/19561
diff --git a/include/elf/common.h b/include/elf/common.h
index 767ad3e..087d876 100644
--- a/include/elf/common.h
+++ b/include/elf/common.h
@@ -1021,6 +1021,7 @@
#define AT_SUN_LDNAME 2006 /* String giving name of dynamic linker. */
#define AT_SUN_LPAGESZ 2007 /* Large pagesize. */
#define AT_SUN_PLATFORM 2008 /* Platform name string. */
+#undef AT_SUN_HWCAP
#define AT_SUN_HWCAP 2009 /* Machine dependent hints about
processor capabilities. */
#define AT_SUN_IFLUSH 2010 /* Should flush icache? */