Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/amd64/include buildfix: invert comparison to get th...



details:   https://anonhg.NetBSD.org/src/rev/6a745d0bb93b
branches:  trunk
changeset: 753143:6a745d0bb93b
user:      cegger <cegger%NetBSD.org@localhost>
date:      Thu Mar 18 08:28:33 2010 +0000

description:
buildfix: invert comparison to get the 64bit defines by default.
Fixes 'i386/elf_machdep.h: No such file or directory error' when compiling
amd64 toolchain on OSX.

diffstat:

 sys/arch/amd64/include/elf_machdep.h |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (23 lines):

diff -r c47cf37e9de1 -r 6a745d0bb93b sys/arch/amd64/include/elf_machdep.h
--- a/sys/arch/amd64/include/elf_machdep.h      Thu Mar 18 04:38:06 2010 +0000
+++ b/sys/arch/amd64/include/elf_machdep.h      Thu Mar 18 08:28:33 2010 +0000
@@ -1,6 +1,6 @@
-/*     $NetBSD: elf_machdep.h,v 1.3 2009/05/30 05:56:52 skrll Exp $    */
+/*     $NetBSD: elf_machdep.h,v 1.4 2010/03/18 08:28:33 cegger Exp $   */
 
-#ifdef __x86_64__
+#if !defined __i386__
 
 #define        ELF32_MACHDEP_ENDIANNESS        ELFDATA2LSB
 #define        ELF32_MACHDEP_ID_CASES                                          \
@@ -48,8 +48,8 @@
 
 #define        R_TYPE(name)    __CONCAT(R_X86_64_,name)
 
-#else  /*      __x86_64__      */
+#else  /*      !__i386__       */
 
 #include <i386/elf_machdep.h>
 
-#endif /*      __x86_64__      */
+#endif /*      !__i386__       */



Home | Main Index | Thread Index | Old Index