diff options
author | Wolfgang Denk <wd@denx.de> | 2008-09-02 21:17:36 +0200 |
---|---|---|
committer | Wolfgang Denk <wd@denx.de> | 2008-09-02 21:17:36 +0200 |
commit | 1711f3bd16d1c5e9d17b4c0198b426d86999781b (patch) | |
tree | 11f3d6c83371ef4772ec7be3976030577d9e54ac /tools | |
parent | 628ffd73bcff0c9f3bc5a8eeb2c7455fe9d28a51 (diff) |
fw_env.c: fix build problems with MTD_VERSION=old
(as needed to support old 2.4 Linux kernel based releases)
Signed-off-by: Wolfgang Denk <wd@denx.de>
Diffstat (limited to 'tools')
-rw-r--r-- | tools/env/fw_env.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/env/fw_env.c b/tools/env/fw_env.c index b8bca91c38d..e4fc02d29bc 100644 --- a/tools/env/fw_env.c +++ b/tools/env/fw_env.c @@ -33,6 +33,7 @@ #include <unistd.h> #ifdef MTD_OLD +# include <stdint.h> # include <linux/mtd/mtd.h> #else # define __user /* nothing */ @@ -397,7 +398,7 @@ int fw_setenv (int argc, char *argv[]) static int flash_io (int mode) { int fd, fdr, rc, otherdev, len, resid; - erase_info_t erase; + struct erase_info_user erase; char *data = NULL; if ((fd = open (DEVNAME (curdev), mode)) < 0) { |