From e468ef27b78d6968d08c9f35afea4b253d52d349 Mon Sep 17 00:00:00 2001 From: Bernhard Reutner-Fischer Date: Mon, 16 Apr 2007 12:21:05 +0000 Subject: [PATCH] - fix compilation if ENABLE_FEATURE_DD_IBS_OBS is off --- coreutils/dd.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/coreutils/dd.c b/coreutils/dd.c index 3011e005d..8b374aa8b 100644 --- a/coreutils/dd.c +++ b/coreutils/dd.c @@ -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; -- 2.25.1