From: Mikko Rasa Date: Mon, 8 Oct 2012 20:37:44 +0000 (+0300) Subject: Fix some compilation problems X-Git-Url: http://git.tdb.fi/?a=commitdiff_plain;h=de95d7d024ebf9d18721579f52b98311c853ea67;p=libs%2Fnet.git Fix some compilation problems --- diff --git a/source/net/resolve.cpp b/source/net/resolve.cpp index e8aad66..8f5c97b 100644 --- a/source/net/resolve.cpp +++ b/source/net/resolve.cpp @@ -19,7 +19,7 @@ SockAddr *resolve(const string &host, const string &serv, Family family) { const char *chost = (host.empty() ? 0 : host.c_str()); const char *cserv = (serv.empty() ? 0 : serv.c_str()); - unsigned flags = 0; + int flags = 0; if(host=="*") { flags = AI_PASSIVE; diff --git a/source/net/socket.cpp b/source/net/socket.cpp index 5af2b4f..7591977 100644 --- a/source/net/socket.cpp +++ b/source/net/socket.cpp @@ -1,5 +1,6 @@ #ifndef WIN32 #include +#include #include #include #endif