diff options
Diffstat (limited to 'src/HostAddress.cpp')
-rw-r--r-- | src/HostAddress.cpp | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/src/HostAddress.cpp b/src/HostAddress.cpp index f0b8ced07..6002cfa50 100644 --- a/src/HostAddress.cpp +++ b/src/HostAddress.cpp @@ -3,12 +3,23 @@ // that can be found in the LICENSE file at the root of the // Mumble source tree or at <https://www.mumble.info/LICENSE>. -#include "murmur_pch.h" - #include "HostAddress.h" #include "ByteSwap.h" +#ifdef Q_OS_WIN +# include "win.h" +# include <winsock2.h> +# include <ws2tcpip.h> +#else +# include <arpa/inet.h> +# if defined(Q_OS_FREEBSD) || defined(Q_OS_OPENBSD) +# include <netinet/in.h> +# include <sys/socket.h> +# include <sys/types.h> +# endif +#endif + HostAddress::HostAddress() { addr[0] = addr[1] = 0ULL; } |