summaryrefslogtreecommitdiffstats
path: root/lib_generic
diff options
context:
space:
mode:
authorBartlomiej Sieka <tur@semihalf.com>2008-04-25 13:54:02 +0200
committerWolfgang Denk <wd@denx.de>2008-04-25 14:05:21 +0200
commit7590378fb9c686709492ceb142825cd058255956 (patch)
treea6bb251a079fd9325cd77f6b7d2a6954fc84720d /lib_generic
parent1de6b28be5d107ae90ad7a8a43653c49966e8afe (diff)
downloadblackbird-obmc-uboot-7590378fb9c686709492ceb142825cd058255956.tar.gz
blackbird-obmc-uboot-7590378fb9c686709492ceb142825cd058255956.zip
Use watchdog-aware functions when calculating hashes of images - take two
Some files didn't get updated properly with the "Use watchdog-aware functions when calculating hashes of images" commit, this commit fixes this. Signed-off-by: Bartlomiej Sieka <tur@semihalf.com> Signed-off-by: Wolfgang Denk <wd@denx.de>
Diffstat (limited to 'lib_generic')
-rw-r--r--lib_generic/md5.c4
-rw-r--r--lib_generic/sha1.c4
2 files changed, 8 insertions, 0 deletions
diff --git a/lib_generic/md5.c b/lib_generic/md5.c
index 20178b8dcd..78ef47535e 100644
--- a/lib_generic/md5.c
+++ b/lib_generic/md5.c
@@ -25,6 +25,10 @@
and to fit the cifs vfs by
Steve French sfrench@us.ibm.com */
+#ifndef USE_HOSTCC
+#include <common.h>
+#endif /* USE_HOSTCC */
+#include <watchdog.h>
#include <linux/types.h>
#include <linux/string.h>
#include <u-boot/md5.h>
diff --git a/lib_generic/sha1.c b/lib_generic/sha1.c
index 69506592f7..c8ef4d2827 100644
--- a/lib_generic/sha1.c
+++ b/lib_generic/sha1.c
@@ -29,6 +29,10 @@
#define _CRT_SECURE_NO_DEPRECATE 1
#endif
+#ifndef USE_HOSTCC
+#include <common.h>
+#endif /* USE_HOSTCC */
+#include <watchdog.h>
#include <linux/string.h>
#include "sha1.h"
OpenPOWER on IntegriCloud