Optional Unix Socket disable for devices that do not support it

(cherry picked from commit fe068b61ad)
This commit is contained in:
Jairo 2019-09-30 21:15:50 -03:00 committed by Rémi Verschelde
parent ebc76d6c0f
commit f18a8d3ffc
1 changed files with 2 additions and 0 deletions

View File

@ -30,6 +30,7 @@
#include "net_socket_posix.h"
#ifndef UNIX_SOCKET_UNAVAILABLE
#if defined(UNIX_ENABLED)
#include <errno.h>
@ -614,3 +615,4 @@ Ref<NetSocket> NetSocketPosix::accept(IP_Address &r_ip, uint16_t &r_port) {
ns->set_blocking_enabled(false);
return Ref<NetSocket>(ns);
}
#endif