tools/envcrc: fix compile breakage
authorIgor Grinberg <grinberg@compulab.co.il>
Sun, 27 Nov 2011 21:57:38 +0000 (21:57 +0000)
committerWolfgang Denk <wd@denx.de>
Tue, 6 Dec 2011 21:11:25 +0000 (22:11 +0100)
commit73f94ed403a24496d30d4a65afcf2a2d1c0c58d1
tree3f998ae6aa414e1da55df70f672073f7de7a2335
parent734329f9644273e35716c11292f82723884c628e
tools/envcrc: fix compile breakage

When ENV_IS_EMBEDDED is not set, but CONFIG_BUILD_ENVCRC is set,
the environment.h file does not get included resulting in unrecognized
env_t type.
Fix this by moving the include directive.

Reported-by: Mike Frysinger <vapier@gentoo.org>
Signed-off-by: Igor Grinberg <grinberg@compulab.co.il>
Tested-by: Mike Frysinger <vapier@gentoo.org>
tools/envcrc.c