Fix build problems under Cygwin
authorraptorbrino@aim.com <raptorbrino@aim.com>
Fri, 14 Dec 2007 02:23:28 +0000 (21:23 -0500)
committerWolfgang Denk <wd@denx.de>
Wed, 9 Jan 2008 14:07:02 +0000 (15:07 +0100)
This patch allows u-boot to build without error in a cygwin
environment.  Cygwin does not define __u64 in it's
include/asm/types.h file.  The -idirafter flag in the u-boot
build causes the inclusion of the cygwin types.h file as opposed
to u-bot/include/asm/types.h file which does define __u64.
Subsequently, sha1.c compile fails due to unknown symbol.

Signed-off-by: Brian Miller <raptorbrino@netscape.net>
tools/Makefile

index e8e02801a6be0d76b638cc1fc452d9448c80032e..21cc090570728c6592e923ac6169cb76e49231c8 100644 (file)
@@ -97,6 +97,7 @@ endif
 #
 ifeq ($(HOSTOS),cygwin)
 SFX = .exe
+HOST_CFLAGS += -ansi
 else
 SFX =
 endif