From: Dmitry V. Levin Date: Tue, 25 Aug 2015 21:48:36 +0000 (+0000) Subject: Fix build on systems that lack UBI_IOCVOLCRBLK/UBI_IOCVOLRMBLK definitions X-Git-Tag: v4.11~258 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=642ee798b27690dcc0f44a120701e1959d48499b;p=strace Fix build on systems that lack UBI_IOCVOLCRBLK/UBI_IOCVOLRMBLK definitions * mtd.c (ubi_ioctl): Check that UBI_IOCVOLCRBLK and UBI_IOCVOLRMBLK are defined. --- diff --git a/mtd.c b/mtd.c index 5e8f6c22..25025367 100644 --- a/mtd.c +++ b/mtd.c @@ -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;