made code a bit win32 friendly

This commit is contained in:
2018-03-31 07:10:43 +00:00
parent 8df5087b9d
commit 16b96e49bc
3 changed files with 95 additions and 28 deletions

View File

@ -1111,7 +1111,20 @@ hcl_uint128_t hcl_hton128 (hcl_uint128_t x)
/* --------------------------------------------------------------- */
#include <netinet/in.h>
#if defined(_WIN32)
# include <winsock2.h>
# include <ws2tcpip.h> /* sockaddr_in6 */
# include <windows.h>
#elif defined(__OS2__)
# if defined(TCPV40HDRS)
# define BSD_SELECT
# endif
# include <types.h>
# include <sys/socket.h>
# include <netinet/in.h>
#else
# include <netinet/in.h>
#endif
union sockaddr_t
{