Module Name:    src
Committed By:   cegger
Date:           Thu Mar 18 08:28:33 UTC 2010

Modified Files:
        src/sys/arch/amd64/include: elf_machdep.h

Log Message:
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.


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/sys/arch/amd64/include/elf_machdep.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/arch/amd64/include/elf_machdep.h
diff -u src/sys/arch/amd64/include/elf_machdep.h:1.3 src/sys/arch/amd64/include/elf_machdep.h:1.4
--- src/sys/arch/amd64/include/elf_machdep.h:1.3	Sat May 30 05:56:52 2009
+++ src/sys/arch/amd64/include/elf_machdep.h	Thu Mar 18 08:28:33 2010
@@ -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__	*/

Reply via email to