X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=applets%2Fbusybox.c;h=833e8d37292ccb8fa603aa43d311182692a256b8;hb=f51d2069ff3a38be49a86212e1d62f2fd89c5943;hp=420c9c0e5d350ffec83ae5431056ca289917006a;hpb=b766c394569cce356fceb63d83da79581c0997b9;p=oweals%2Fbusybox.git diff --git a/applets/busybox.c b/applets/busybox.c index 420c9c0e5..833e8d372 100644 --- a/applets/busybox.c +++ b/applets/busybox.c @@ -5,8 +5,10 @@ #include #include #include "busybox.h" -#ifdef CONFIG_LOCALE_SUPPORT +#if ENABLE_LOCALE_SUPPORT #include +#else +#define setlocale(x,y) #endif const char *bb_applet_name; @@ -54,6 +56,8 @@ static void install_links(const char *busybox, int use_symbolic_links) } } +#else +#define install_links(x,y) #endif /* CONFIG_FEATURE_INSTALLER */ int main(int argc, char **argv) @@ -106,8 +110,9 @@ int busybox_main(int argc, char **argv) /* Deal with --help. (Also print help when called with no arguments) */ if (argc==1 || !strcmp(argv[1],"--help") ) { - if (argc>2) run_applet_by_name(bb_applet_name=argv[2], argc, argv); - else { + if (argc>2) { + run_applet_by_name(bb_applet_name=argv[2], 2, argv); + } else { const struct BB_applet *a; int col, output_width;