diff options
-rw-r--r-- | src/Networking/LwipEthernet/LwipEthernetInterface.cpp | 5 | ||||
-rw-r--r-- | src/Networking/LwipEthernet/LwipEthernetInterface.h | 5 | ||||
-rw-r--r-- | src/Networking/LwipEthernet/LwipSocket.cpp | 5 | ||||
-rw-r--r-- | src/Networking/LwipEthernet/LwipSocket.h | 5 |
4 files changed, 20 insertions, 0 deletions
diff --git a/src/Networking/LwipEthernet/LwipEthernetInterface.cpp b/src/Networking/LwipEthernet/LwipEthernetInterface.cpp index 679212cb..9f35a201 100644 --- a/src/Networking/LwipEthernet/LwipEthernetInterface.cpp +++ b/src/Networking/LwipEthernet/LwipEthernetInterface.cpp @@ -9,6 +9,9 @@ #define NO_STATUS_CODES #include "LwipEthernetInterface.h" + +#if HAS_LWIP_NETWORKING + #include <Networking/NetworkBuffer.h> #include "LwipSocket.h" @@ -698,4 +701,6 @@ void LwipEthernetInterface::RebuildMdnsServices() noexcept mdns_resp_netif_settings_changed(&gs_net_if); } +#endif // HAS_LWIP_NETWORKING + // End diff --git a/src/Networking/LwipEthernet/LwipEthernetInterface.h b/src/Networking/LwipEthernet/LwipEthernetInterface.h index 2258f618..01fa0f03 100644 --- a/src/Networking/LwipEthernet/LwipEthernetInterface.h +++ b/src/Networking/LwipEthernet/LwipEthernetInterface.h @@ -9,6 +9,9 @@ #define SRC_NETWORKING_LWIPETHERNET_LWIPETHERNETINTERFACE_H_ #include <RepRapFirmware.h> + +#if HAS_LWIP_NETWORKING + #include <Networking/NetworkInterface.h> #include <Networking/NetworkDefs.h> @@ -96,4 +99,6 @@ private: MacAddress macAddress; }; +#endif // HAS_LWIP_NETWORKING + #endif // SRC_NETWORKING_LWIPETHERNET_LWIPETHERNETINTERFACE_H_ diff --git a/src/Networking/LwipEthernet/LwipSocket.cpp b/src/Networking/LwipEthernet/LwipSocket.cpp index 67623fe8..5390c809 100644 --- a/src/Networking/LwipEthernet/LwipSocket.cpp +++ b/src/Networking/LwipEthernet/LwipSocket.cpp @@ -9,6 +9,9 @@ #define NO_STATUS_CODES #include "LwipSocket.h" + +#if HAS_LWIP_NETWORKING + #include <Networking/NetworkBuffer.h> #include <Platform/RepRap.h> @@ -464,4 +467,6 @@ size_t LwipSocket::Send(const uint8_t *data, size_t length) noexcept return 0; } +#endif // HAS_LWIP_NETWORKING + // End diff --git a/src/Networking/LwipEthernet/LwipSocket.h b/src/Networking/LwipEthernet/LwipSocket.h index bdb784da..ddedf5d8 100644 --- a/src/Networking/LwipEthernet/LwipSocket.h +++ b/src/Networking/LwipEthernet/LwipSocket.h @@ -9,6 +9,9 @@ #define SRC_NETWORKING_LWIPETHERNET_LWIPSOCKET_H_ #include <RepRapFirmware.h> + +#if HAS_LWIP_NETWORKING + #include "LwipEthernetInterface.h" #include "Networking/NetworkDefs.h" #include "Networking/Socket.h" @@ -74,4 +77,6 @@ private: size_t unAcked; }; +#endif // HAS_LWIP_NETWORKING + #endif /* SRC_NETWORKING_LWIPETHERNET_LWIPSOCKET_H_ */ |