]> granicus.if.org Git - strace/commitdiff
Fix build on systems that lack UBI_IOCVOLCRBLK/UBI_IOCVOLRMBLK definitions
authorDmitry V. Levin <ldv@altlinux.org>
Tue, 25 Aug 2015 21:48:36 +0000 (21:48 +0000)
committerDmitry V. Levin <ldv@altlinux.org>
Tue, 25 Aug 2015 21:48:36 +0000 (21:48 +0000)
* mtd.c (ubi_ioctl): Check that UBI_IOCVOLCRBLK and UBI_IOCVOLRMBLK
are defined.

mtd.c

diff --git a/mtd.c b/mtd.c
index 5e8f6c22fb53eda2b7be528a5220d70f87b27e64..25025367c00e6bf78663d0e09f1312d15d887e15 100644 (file)
--- 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;