Skip to content

Commit 642ee79

Browse files
committed
Fix build on systems that lack UBI_IOCVOLCRBLK/UBI_IOCVOLRMBLK definitions
* mtd.c (ubi_ioctl): Check that UBI_IOCVOLCRBLK and UBI_IOCVOLRMBLK are defined.
1 parent 12cca59 commit 642ee79

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

mtd.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -479,8 +479,12 @@ ubi_ioctl(struct tcb *tcp, const unsigned int code, const long arg)
479479
printnum_int(tcp, arg, "%d");
480480
break;
481481

482+
#ifdef UBI_IOCVOLCRBLK
482483
case UBI_IOCVOLCRBLK:
484+
#endif
485+
#ifdef UBI_IOCVOLRMBLK
483486
case UBI_IOCVOLRMBLK:
487+
#endif
484488
/* no arguments */
485489
break;
486490

0 commit comments

Comments
 (0)