From f3b6d528e4dd719640a4bfcd954f4e4c7f5db0d6 Mon Sep 17 00:00:00 2001 From: Grant Erickson Date: Tue, 6 May 2008 16:18:00 -0700 Subject: Fix Compilation Errors with 'tools/env/fw_printenv' In the current top-of-tree, 1.3.3.-rc2, the optional tool 'tools/env/fw_printenv' fails to compile for two reasons: 1) The header watchdog.h cannot be found. 2) The header zlib.h is picked up from the tool chain rather than the project causing a prototype conflict for crc32. This patch addresses both of these issues. Platforms Tested On: - AMCC "Kilauea" Signed-off-by: Grant Erickson --- lib_generic/crc32.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'lib_generic') diff --git a/lib_generic/crc32.c b/lib_generic/crc32.c index 64f66ed6fb..83d1d1d3a0 100644 --- a/lib_generic/crc32.c +++ b/lib_generic/crc32.c @@ -14,7 +14,9 @@ #include #endif +#if defined(CONFIG_HW_WATCHDOG) || defined(CONFIG_WATCHDOG) #include +#endif #include "zlib.h" #define local static -- cgit v1.2.1