From: raptorbrino@aim.com <raptorbrino@aim.com>
Date: Fri, 14 Dec 2007 02:23:28 +0000 (-0500)
Subject: Fix build problems under Cygwin
X-Git-Tag: v2025.01-rc5-pxa1908~22626^2~49^2~3
X-Git-Url: http://git.dujemihanovic.xyz/img/%7B%7B%20%28.OutputFormats.Get?a=commitdiff_plain;h=883e3925d99a8dd69c5b0201cba5b1887f88f95c;p=u-boot.git

Fix build problems under Cygwin

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>
---

diff --git a/tools/Makefile b/tools/Makefile
index e8e02801a6..21cc090570 100644
--- a/tools/Makefile
+++ b/tools/Makefile
@@ -97,6 +97,7 @@ endif
 #
 ifeq ($(HOSTOS),cygwin)
 SFX = .exe
+HOST_CFLAGS += -ansi
 else
 SFX =
 endif