summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorJairo <jeronimo.schreyer@gmail.com>2019-09-30 21:15:50 -0300
committerJairo <jeronimo.schreyer@gmail.com>2019-09-30 21:15:50 -0300
commitfe068b61ad4355372e454dc5bbaec0c42d58d67b (patch)
tree15f90dc069b9539e6a92ad14cdffdd2ffe3a2ad6 /drivers
parent24e1039eb6fe32115e8d1a62a84965e9be19a2ed (diff)
Optional Unix Socket disable for devices that do not support it
Diffstat (limited to 'drivers')
-rw-r--r--drivers/unix/net_socket_posix.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/unix/net_socket_posix.cpp b/drivers/unix/net_socket_posix.cpp
index 6a57a2e562..7a7d286c4d 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 <errno.h>
@@ -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