mirror of
https://github.com/AsahiLinux/u-boot
synced 2025-02-17 22:49:02 +00:00
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>
This commit is contained in:
parent
628ffd73bc
commit
1711f3bd16
1 changed files with 2 additions and 1 deletions
3
tools/env/fw_env.c
vendored
3
tools/env/fw_env.c
vendored
|
@ -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) {
|
||||
|
|
Loading…
Add table
Reference in a new issue