From 2634bf366b298a827d043566656f8696f4dc153c Mon Sep 17 00:00:00 2001 From: Denys Vlasenko Date: Tue, 9 Jun 2009 18:40:07 +0200 Subject: randomconfig fixes Signed-off-by: Denys Vlasenko --- util-linux/script.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'util-linux/script.c') 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); -- cgit v1.2.3