Win32 compilation fixes

This commit is contained in:
Luca Deri 2015-11-26 23:47:55 +01:00
parent 98ef945d2e
commit cb68d4d00a
7 changed files with 51 additions and 15 deletions

View file

@ -34,12 +34,15 @@
#endif
#include <ctype.h>
#include <time.h>
#ifdef WIN32
#include <winsock2.h>
#include <ws2tcpip.h>
#else
#include <arpa/inet.h>
#ifndef WIN32
#include <sys/time.h>
#include <sys/socket.h>
#if !defined __APPLE__ && !defined __FreeBSD__ && !defined __NetBSD__ && !defined __OpenBSD__
#include <endian.h>
#include <byteswap.h>