From 8c146dfa0b6b2a79ab33e67e45a27691ebc7d785 Mon Sep 17 00:00:00 2001 From: Ryan Date: Mon, 8 Jun 2009 23:56:09 +0200 Subject: [PATCH] Don't use AI_NUMERICSERV. Doesn't work on mac. --- src/net.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/net.cc b/src/net.cc index 04d335ea76..fe1140c63f 100644 --- a/src/net.cc +++ b/src/net.cc @@ -41,14 +41,14 @@ using namespace node; #define CLOSED_SYMBOL String::NewSymbol("closed") static const struct addrinfo server_tcp_hints = -/* ai_flags */ { AI_PASSIVE | AI_NUMERICSERV +/* ai_flags */ { AI_PASSIVE /* ai_family */ , AF_INET //AF_UNSPEC /* ai_socktype */ , SOCK_STREAM , 0 }; static const struct addrinfo client_tcp_hints = -/* ai_flags */ { AI_NUMERICSERV +/* ai_flags */ { 0 /* ai_family */ , AF_INET //AF_UNSPEC /* ai_socktype */ , SOCK_STREAM , 0