mirror of
https://github.com/Fishwaldo/u-boot.git
synced 2025-03-19 05:31:32 +00:00
lib/sha256: fix compile on some hosts
Commit 2842c1c242
introduced lib/sha256 into
mkimage. Since then it will be compiled with HOSTCC which may produce errors
on some systems. Most BSD systems (like OS X for me) do not ship a
linux/string.h which will lead to take the U-Boot provided
include/linux/string.h in the end. This header howver is completely wrong
here. Just take the string.h if compiling with HOSTCC and linux/string.h when
not.
Signed-off-by: Andreas Bießmann <andreas.devel@googlemail.com>
Cc: Heiko Schocher <hs@denx.de>
Acked-by: Heiko Schocher<hs@denx.de>
This commit is contained in:
parent
65bb6d8dee
commit
822ef00e98
1 changed files with 3 additions and 1 deletions
|
@ -8,9 +8,11 @@
|
||||||
|
|
||||||
#ifndef USE_HOSTCC
|
#ifndef USE_HOSTCC
|
||||||
#include <common.h>
|
#include <common.h>
|
||||||
|
#include <linux/string.h>
|
||||||
|
#else
|
||||||
|
#include <string.h>
|
||||||
#endif /* USE_HOSTCC */
|
#endif /* USE_HOSTCC */
|
||||||
#include <watchdog.h>
|
#include <watchdog.h>
|
||||||
#include <linux/string.h>
|
|
||||||
#include <sha256.h>
|
#include <sha256.h>
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
Loading…
Add table
Reference in a new issue