+++ src/app/lighttpd/src/fdevent_poll.c @@ -193,7 +193,7 @@ int fdevent_poll_init(fdevents *ev) { int fdevent_poll_init(fdevents *ev) { UNUSED(ev); - log_error_write(srv, __FILE__, __LINE__, + log_error_write(ev->srv, __FILE__, __LINE__, "s", "poll is not supported, try to set server.event-handler = \"select\""); return -1; +++ src/app/lighttpd/src/http-header-glue.c @@ -172,6 +172,7 @@ int http_response_redirect_to_directory(server *srv, connection *con) { break; #endif case AF_INET: +#if 0 if (NULL == (he = gethostbyaddr((char *)&our_addr.ipv4.sin_addr, sizeof(struct in_addr), AF_INET))) { log_error_write(srv, __FILE__, __LINE__, "SdS", "NOTICE: gethostbyaddr failed: ", @@ -181,6 +182,8 @@ int http_response_redirect_to_directory(server *srv, connection *con) { } else { buffer_append_string(o, he->h_name); } +#endif + buffer_append_string(o, inet_ntoa(our_addr.ipv4.sin_addr)); break; default: log_error_write(srv, __FILE__, __LINE__, +++ src/app/lighttpd/src/network.c @@ -323,6 +323,7 @@ static int network_server_init(server *srv, buffer *host_token, specific_config if (host == NULL) { srv_socket->addr.ipv4.sin_addr.s_addr = htonl(INADDR_ANY); } else { +#if 0 struct hostent *he; if (NULL == (he = gethostbyname(host))) { log_error_write(srv, __FILE__, __LINE__, @@ -342,6 +343,7 @@ static int network_server_init(server *srv, buffer *host_token, specific_config } memcpy(&(srv_socket->addr.ipv4.sin_addr.s_addr), he->h_addr_list[0], he->h_length); +#endif } srv_socket->addr.ipv4.sin_port = htons(port); +++ src/app/lighttpd/src/fdevent.c @@ -201,15 +201,18 @@ } void fd_close_on_exec(int fd) { +#if 0 #ifdef FD_CLOEXEC if (fd < 0) return; force_assert(-1 != fcntl(fd, F_SETFD, FD_CLOEXEC)); #else UNUSED(fd); #endif +#endif } int fdevent_fcntl_set(fdevents *ev, int fd) { +#if 0 fd_close_on_exec(fd); if ((ev) && (ev->fcntl_set)) return ev->fcntl_set(ev, fd); #ifdef O_NONBLOCK @@ -217,6 +220,9 @@ #else return 0; #endif +#else + return 0; +#endif }