From f18a8d3ffc7351973cd6ea6e2f403d8e77d707d5 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 (cherry picked from commit fe068b61ad4355372e454dc5bbaec0c42d58d67b) --- 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 2dffa083fe9..56000afaac3 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 @@ -614,3 +615,4 @@ Ref NetSocketPosix::accept(IP_Address &r_ip, uint16_t &r_port) { ns->set_blocking_enabled(false); return Ref(ns); } +#endif