Fix build on systems that lack UBI_IOCVOLCRBLK/UBI_IOCVOLRMBLK definitions

* mtd.c (ubi_ioctl): Check that UBI_IOCVOLCRBLK and UBI_IOCVOLRMBLK
are defined.
This commit is contained in:
Дмитрий Левин 2015-08-25 21:48:36 +00:00
parent 12cca59aed
commit 642ee798b2

4
mtd.c
View File

@ -479,8 +479,12 @@ ubi_ioctl(struct tcb *tcp, const unsigned int code, const long arg)
printnum_int(tcp, arg, "%d");
break;
#ifdef UBI_IOCVOLCRBLK
case UBI_IOCVOLCRBLK:
#endif
#ifdef UBI_IOCVOLRMBLK
case UBI_IOCVOLRMBLK:
#endif
/* no arguments */
break;