diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2007-03-26 17:35:09 +0400 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2007-03-26 17:35:09 +0400 |
commit | 53091ecd20c294f0e0757a5f4e0d5c8c7b23b555 (patch) | |
tree | f4ae0be26d5debff091d2c976e77fa8050c6758c /networking | |
parent | ec1a4b5a521b5adf295bc757c25231910f8c854b (diff) |
Attempt to get more applets compile for NOMMU.
TODO_config_nommu documents what I managed to compile so far
(yay! msh works! cool). inetd, telnetd, httpd still do not compile. TODO
Also make fork(), daemon() produce warnings on compile stage
(in addition to erros on link stage).
Diffstat (limited to 'networking')
-rw-r--r-- | networking/httpd.c | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/networking/httpd.c b/networking/httpd.c index b8d9b6b6f..8ab2bc45d 100644 --- a/networking/httpd.c +++ b/networking/httpd.c @@ -1938,13 +1938,6 @@ enum { OPT_FOREGROUND = 1 << p_opt_foreground, }; -static const char httpd_opts[] = "c:d:h:" - USE_FEATURE_HTTPD_ENCODE_URL_STR("e:") - USE_FEATURE_HTTPD_BASIC_AUTH("r:") - USE_FEATURE_HTTPD_AUTH_MD5("m:") - USE_FEATURE_HTTPD_SETUID("u:") - "p:if"; - int httpd_main(int argc, char *argv[]); int httpd_main(int argc, char *argv[]) @@ -1970,7 +1963,12 @@ int httpd_main(int argc, char *argv[]) config->port = 80; config->ContentLength = -1; - opt = getopt32(argc, argv, httpd_opts, + opt = getopt32(argc, argv, "c:d:h:" + USE_FEATURE_HTTPD_ENCODE_URL_STR("e:") + USE_FEATURE_HTTPD_BASIC_AUTH("r:") + USE_FEATURE_HTTPD_AUTH_MD5("m:") + USE_FEATURE_HTTPD_SETUID("u:") + "p:if", &(config->configFile), &url_for_decode, &home_httpd USE_FEATURE_HTTPD_ENCODE_URL_STR(, &url_for_encode) USE_FEATURE_HTTPD_BASIC_AUTH(, &(config->realm)) |