#include <errno.h>
#include <stdlib.h>
#include "busybox.h"
-#ifdef CONFIG_LOCALE_SUPPORT
+#if ENABLE_LOCALE_SUPPORT
#include <locale.h>
+#else
+#define setlocale(x,y)
#endif
const char *bb_applet_name;
}
}
+#else
+#define install_links(x,y)
#endif /* CONFIG_FEATURE_INSTALLER */
int 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;