- fix compilation if ENABLE_FEATURE_DD_IBS_OBS is off
authorBernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Mon, 16 Apr 2007 12:21:05 +0000 (12:21 -0000)
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Mon, 16 Apr 2007 12:21:05 +0000 (12:21 -0000)
coreutils/dd.c

index 3011e005db5800da8ad191c3c09b6f9424a227d1..8b374aa8bc039bce6f89fd4e648f8f187e4cd3b8 100644 (file)
@@ -92,14 +92,14 @@ int dd_main(int argc, char **argv)
                OP_skip,
                OP_if,
                OP_of,
-USE_FEATURE_DD_IBS_OBS(
+#if ENABLE_FEATURE_DD_IBS_OBS
                OP_ibs,
                OP_obs,
                OP_conv,
                OP_conv_notrunc,
                OP_conv_sync,
                OP_conv_noerror,
-)
+#endif
        };
        int flags = trunc_flag;
        size_t oc = 0, ibs = 512, obs = 512;
@@ -139,7 +139,7 @@ USE_FEATURE_DD_IBS_OBS(
                        bb_show_usage();
                arg += key_len;
                /* Must fit into positive ssize_t */
-               if (ENABLE_FEATURE_DD_IBS_OBS) {
+#if ENABLE_FEATURE_DD_IBS_OBS
                        if (what == OP_ibs) {
                                ibs = xatoul_range_sfx(arg, 1, ((size_t)-1L)/2, dd_suffixes);
                                continue;
@@ -172,7 +172,7 @@ USE_FEATURE_DD_IBS_OBS(
                                }
                                continue;
                        }
-               }
+#endif
                if (what == OP_bs) {
                        ibs = obs = xatoul_range_sfx(arg, 1, ((size_t)-1L)/2, dd_suffixes);
                        continue;