fw_env.c: fix build problems with MTD_VERSION=old
authorWolfgang Denk <wd@denx.de>
Tue, 2 Sep 2008 19:17:36 +0000 (21:17 +0200)
committerWolfgang Denk <wd@denx.de>
Tue, 2 Sep 2008 19:17:36 +0000 (21:17 +0200)
(as needed to support old 2.4 Linux kernel based releases)

Signed-off-by: Wolfgang Denk <wd@denx.de>
tools/env/fw_env.c

index b8bca91c38d969500e6ad7fe9b54539b964adcfe..e4fc02d29bc0e9acb938b92a3e3c042b56b4d65e 100644 (file)
@@ -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) {