fixed compilation on windows

This commit is contained in:
csoler 2022-10-03 18:35:52 +02:00
parent 87be1e353e
commit 6c4e918b36

View File

@ -26,7 +26,14 @@
#include <time.h> #include <time.h>
#include <unistd.h> #include <unistd.h>
#include <sys/types.h> #include <sys/types.h>
#ifdef WINDOWS_SYS
#include <windows.h>
#include <winsock2.h>
#include <ws2tcpip.h>
#else
#include <netinet/tcp.h> #include <netinet/tcp.h>
#endif
#include "util/rsnet.h" #include "util/rsnet.h"
#include "util/rsprint.h" #include "util/rsprint.h"