aboutsummaryrefslogtreecommitdiff
path: root/util-linux
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2009-06-09 18:40:07 +0200
committerDenys Vlasenko <vda.linux@googlemail.com>2009-06-09 18:40:07 +0200
commit2634bf366b298a827d043566656f8696f4dc153c (patch)
tree72c0b708f16f97d953587422321005067fd6e106 /util-linux
parent38d9072b2c9490e67c3423e09b081754095d8c49 (diff)
downloadbusybox-2634bf366b298a827d043566656f8696f4dc153c.tar.gz
randomconfig fixes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'util-linux')
-rw-r--r--util-linux/script.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/util-linux/script.c b/util-linux/script.c
index 4e0deb4ef..2e2be33e7 100644
--- a/util-linux/script.c
+++ b/util-linux/script.c
@@ -36,16 +36,17 @@ int script_main(int argc UNUSED_PARAM, char **argv)
OPT_t = (1 << 4),
};
+#if ENABLE_GETOPT_LONG
static const char getopt_longopts[] ALIGN1 =
"append\0" No_argument "a"
"command\0" Required_argument "c"
"flush\0" No_argument "f"
"quiet\0" No_argument "q"
- IF_SCRIPTREPLAY("timing\0" No_argument "t")
+ IF_SCRIPTREPLAY("timing\0" No_argument "t")
;
- if (ENABLE_GETOPT_LONG)
- applet_long_options = getopt_longopts;
+ applet_long_options = getopt_longopts;
+#endif
opt_complementary = "?1"; /* max one arg */
opt = getopt32(argv, "ac:fq" IF_SCRIPTREPLAY("t") , &shell_arg);