diff options
Diffstat (limited to 'indra/llmessage/llhost.cpp')
-rw-r--r-- | indra/llmessage/llhost.cpp | 20 |
1 files changed, 11 insertions, 9 deletions
diff --git a/indra/llmessage/llhost.cpp b/indra/llmessage/llhost.cpp index f4a1740663..501d9465c2 100644 --- a/indra/llmessage/llhost.cpp +++ b/indra/llmessage/llhost.cpp @@ -8,19 +8,21 @@ #include "linden_common.h" - -#if !LL_WINDOWS -#include <netdb.h> -#include <netinet/in.h> // ntonl() -#include <sys/types.h> -#include <sys/socket.h> -#include <arpa/inet.h> -#endif - #include "llhost.h" #include "llerror.h" +#if LL_WINDOWS + #define WIN32_LEAN_AND_MEAN + #include <winsock2.h> +#else + #include <netdb.h> + #include <netinet/in.h> // ntonl() + #include <sys/types.h> + #include <sys/socket.h> + #include <arpa/inet.h> +#endif + LLHost LLHost::invalid(INVALID_PORT,INVALID_HOST_IP_ADDRESS); LLHost::LLHost(const std::string& ip_and_port) |