diff options
Diffstat (limited to 'src/HostAddress.cpp')
-rw-r--r-- | src/HostAddress.cpp | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/HostAddress.cpp b/src/HostAddress.cpp index de2c70869..6002cfa50 100644 --- a/src/HostAddress.cpp +++ b/src/HostAddress.cpp @@ -7,6 +7,19 @@ #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; } |