summaryrefslogtreecommitdiffhomepage
path: root/findutils/xargs.c
diff options
context:
space:
mode:
Diffstat (limited to 'findutils/xargs.c')
-rw-r--r--findutils/xargs.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/findutils/xargs.c b/findutils/xargs.c
index 2d0d1c8b9..c3d37a64d 100644
--- a/findutils/xargs.c
+++ b/findutils/xargs.c
@@ -495,13 +495,8 @@ int xargs_main(int argc, char **argv)
INIT_G();
-#if ENABLE_DESKTOP && ENABLE_LONG_OPTS
- /* For example, Fedora's build system uses --no-run-if-empty */
- applet_long_options =
- "no-run-if-empty\0" No_argument "r"
- ;
-#endif
- opt = getopt32(argv, OPTION_STR,
+ opt = getopt32long(argv, OPTION_STR,
+ "no-run-if-empty\0" No_argument "r",
&max_args, &max_chars, &G.eof_str, &G.eof_str
IF_FEATURE_XARGS_SUPPORT_REPL_STR(, &G.repl_str, &G.repl_str)
);