From: Wolfgang Denk Date: Mon, 27 Aug 2007 17:36:38 +0200 Subject: [U-Boot-Users] [PATCH] AVR32: Change prototype of memset In-Reply-To: Your message of "Mon, 27 Aug 2007 15:52:28 +0200." <1defaf580708270652j3bec3783s909fde25f9951f94@mail.gmail.com> Message-ID: <20070827153638.85E5124044@gemini.denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de In message <1defaf580708270652j3bec3783s909fde25f9951f94@mail.gmail.com> you wrote: > > > > and below is the fix. Any reason why sha1.c includes > > > instead of just ? > > > > Because there is no "include/string.h" in U-Boot. > > But there's usually a /usr/include/string.h installed with the host > toolchain, no? Sure. But sha1.c is (also) compiled and linked into the U-Boot binary, and thus it must never reference any headers from the host system. Best regards, Wolfgang Denk -- DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de Good manners are the settled medium of social, as specie is of commercial, life; returns are equally expected for both. - Lord Chesterfield _Letters to his Son_, 25 December 1753