Fixed: Compiler Fehlermeldung bei OpenWRT/musl
Posted: Thu Sep 09, 2021 10:25 pm
Hallo Teddy,
ich compiliere Railcontrol auch für OpenWRT Systeme. OpenWRT nutzt musl als libc, bei der manche Includes etwas anders (strenger) aufgebaut sind. Bei der aktuellen Version habe ich ein Problem bei der Compilierung. Mit folgendem Patch lässt sich das beheben:
Könntest Du das in Deine Sourcen einbauen ?
Gruß
Gerd
ich compiliere Railcontrol auch für OpenWRT Systeme. OpenWRT nutzt musl als libc, bei der manche Includes etwas anders (strenger) aufgebaut sind. Bei der aktuellen Version habe ich ein Problem bei der Compilierung. Mit folgendem Patch lässt sich das beheben:
Code: Select all
diff --git a/Network/TcpClient.cpp b/Network/TcpClient.cpp
index 95e6d1e..677f679 100644
--- a/Network/TcpClient.cpp
+++ b/Network/TcpClient.cpp
@@ -21,6 +21,7 @@ along with RailControl; see the file LICENCE. If not see
#include <fcntl.h>
#include <netinet/in.h>
#include <string.h>
+#include <sys/select.h>
#include "Network/TcpClient.h"
Gruß
Gerd