mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-07-19 19:09:20 +02:00
fix build in compilers other than msvc: include shuffling
This commit is contained in:
@@ -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");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user