Fix macro redefinition error on Solaris
authorAlan Modra <amodra@gmail.com>
Tue, 9 Feb 2016 02:22:02 +0000 (12:52 +1030)
committerAlan Modra <amodra@gmail.com>
Tue, 9 Feb 2016 02:41:16 +0000 (13:11 +1030)
PR 16583
* elf/common.h (AT_SUN_HWCAP): Undef before defining.

include/ChangeLog
include/elf/common.h

index b637fc9..a87610d 100644 (file)
@@ -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
index 767ad3e..087d876 100644 (file)
 #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? */