16
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-07-19 20:19:18 +02:00

fix build in compilers other than msvc: include shuffling

This commit is contained in:
milek7
2018-01-25 15:43:41 +01:00
parent 45f28131a7
commit 1413aae881
26 changed files with 95 additions and 55 deletions

View File

@@ -5,7 +5,17 @@
#include "Train.h"
#include "Timer.h"
#include "Driver.h"
#ifdef _WIN32
#include <winsock2.h>
#include <ws2tcpip.h>
#else
#include <sys/types.h>
#include <sys/socket.h>
#include <netdb.h>
#include <arpa/inet.h>
#include <netinet/in.h>
#endif
motiontelemetry::motiontelemetry()
{
@@ -147,4 +157,4 @@ void motiontelemetry::update()
if (send(sock, (char*)buffer, sizeof(buffer), 0) == -1)
WriteLog("motiontelemetry: socket send failed");
}
}