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).
This commit is contained in:
Denis Vlasenko
2007-03-26 13:35:09 +00:00
parent ec1a4b5a52
commit 53091ecd20
10 changed files with 769 additions and 95 deletions

View File

@@ -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))