Commit a94f22f08f280905926219e568568964cb9eeb9d

Authored by Andy Fleming
Committed by Wolfgang Denk
1 parent 9973e3c614

Fix build issue with string.h and linux/string.h

This commit:
commit 338cc038461a6c7709c5b86fd9a240209338a1ae
Author: Wolfgang Denk <wd@denx.de>
Date:   Fri Jun 6 14:28:14 2008 +0200

    tools/mkimage: fix compiler warnings on some systems.

Broke building on some systems, because the host's string.h was interfering
with u-boot's linux/string.h.  It doesn't look like we need the u-boot one if
we're building for the host, so now we only include when building inside
u-boot.

Signed-off-by: Andy Fleming <afleming@freescale.com>

Showing 2 changed files with 2 additions and 2 deletions Side-by-side Diff

... ... @@ -27,12 +27,12 @@
27 27  
28 28 #ifndef USE_HOSTCC
29 29 #include <common.h>
  30 +#include <linux/string.h>
30 31 #else
31 32 #include <string.h>
32 33 #endif /* USE_HOSTCC */
33 34 #include <watchdog.h>
34 35 #include <linux/types.h>
35   -#include <linux/string.h>
36 36 #include <u-boot/md5.h>
37 37  
38 38 static void
... ... @@ -31,11 +31,11 @@
31 31  
32 32 #ifndef USE_HOSTCC
33 33 #include <common.h>
  34 +#include <linux/string.h>
34 35 #else
35 36 #include <string.h>
36 37 #endif /* USE_HOSTCC */
37 38 #include <watchdog.h>
38   -#include <linux/string.h>
39 39 #include "sha1.h"
40 40  
41 41 /*