summaryrefslogtreecommitdiff
path: root/networking/wget.c
diff options
context:
space:
mode:
authorBernhard Reutner-Fischer2006-05-31 14:11:38 +0000
committerBernhard Reutner-Fischer2006-05-31 14:11:38 +0000
commit8d3a6f7aaf04b09d185652f87cb924702e700c51 (patch)
tree2467b26e6a970a751258b8b4aa048d84e262bbb1 /networking/wget.c
parentf3ac9ebc8e4744bdb98955e682e46dab8509bed9 (diff)
downloadbusybox-8d3a6f7aaf04b09d185652f87cb924702e700c51.zip
busybox-8d3a6f7aaf04b09d185652f87cb924702e700c51.tar.gz
- add CONFIG_FEATURE_WGET_LONG_OPTIONS
Diffstat (limited to 'networking/wget.c')
-rw-r--r--networking/wget.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/networking/wget.c b/networking/wget.c
index fdcc68d..6cab1ba 100644
--- a/networking/wget.c
+++ b/networking/wget.c
@@ -147,6 +147,7 @@ static char *base64enc(unsigned char *p, char *buf, int len) {
#define WGET_OPT_PREFIX 32
#define WGET_OPT_PROXY 64
+#if ENABLE_WGET_LONG_OPTIONS
static const struct option wget_long_options[] = {
{ "continue", 0, NULL, 'c' },
{ "quiet", 0, NULL, 'q' },
@@ -157,6 +158,7 @@ static const struct option wget_long_options[] = {
{ "proxy", 1, NULL, 'Y' },
{ 0, 0, 0, 0 }
};
+#endif
int wget_main(int argc, char **argv)
{
@@ -189,7 +191,9 @@ int wget_main(int argc, char **argv)
* Crack command line.
*/
bb_opt_complementally = "-1:\203::";
+#if ENABLE_WGET_LONG_OPTIONS
bb_applet_long_options = wget_long_options;
+#endif
opt = bb_getopt_ulflags(argc, argv, "cq\213O:\203:P:Y:",
&fname_out, &headers_llist,
&dir_prefix, &proxy_flag);