From fe068b61ad4355372e454dc5bbaec0c42d58d67b Mon Sep 17 00:00:00 2001 From: Jairo Date: Mon, 30 Sep 2019 21:15:50 -0300 Subject: [PATCH] Optional Unix Socket disable for devices that do not support it --- drivers/unix/net_socket_posix.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/unix/net_socket_posix.cpp b/drivers/unix/net_socket_posix.cpp index 6a57a2e5626..7a7d286c4d0 100644 --- a/drivers/unix/net_socket_posix.cpp +++ b/drivers/unix/net_socket_posix.cpp @@ -30,6 +30,7 @@ #include "net_socket_posix.h" +#ifndef UNIX_SOCKET_UNAVAILABLE #if defined(UNIX_ENABLED) #include @@ -691,3 +692,4 @@ Error NetSocketPosix::join_multicast_group(const IP_Address &p_multi_address, St Error NetSocketPosix::leave_multicast_group(const IP_Address &p_multi_address, String p_if_name) { return _change_multicast_group(p_multi_address, p_if_name, false); } +#endif