make use rk_SOCK_ERRNO, make compile again

This commit is contained in:
Love Hornquist Astrand
2009-12-23 14:36:52 +01:00
parent f798af41a0
commit 93e0cc80f4

View File

@@ -182,11 +182,12 @@ main(int argc, char **argv)
*/ */
if(roken_getsockname(STDIN_FILENO, sa, &sa_size) < 0 && if(roken_getsockname(STDIN_FILENO, sa, &sa_size) < 0 &&
SOCK_ERRNO == ENOTSOCK) { rk_SOCK_ERRNO == ENOTSOCK) {
#endif #endif
parse_ports(context, port_str ? port_str : "+"); parse_ports(context, port_str ? port_str : "+");
pidfile(NULL); pidfile(NULL);
start_server(context, &sfd); start_server(context);
sfd = STDIN_FILENO;
#ifndef NO_INETD #ifndef NO_INETD
} else { } else {
sfd = STDIN_FILENO; sfd = STDIN_FILENO;