Optional Unix Socket disable for devices that do not support it
(cherry picked from commit fe068b61ad
)
This commit is contained in:
parent
ebc76d6c0f
commit
f18a8d3ffc
|
@ -30,6 +30,7 @@
|
||||||
|
|
||||||
#include "net_socket_posix.h"
|
#include "net_socket_posix.h"
|
||||||
|
|
||||||
|
#ifndef UNIX_SOCKET_UNAVAILABLE
|
||||||
#if defined(UNIX_ENABLED)
|
#if defined(UNIX_ENABLED)
|
||||||
|
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
|
@ -614,3 +615,4 @@ Ref<NetSocket> NetSocketPosix::accept(IP_Address &r_ip, uint16_t &r_port) {
|
||||||
ns->set_blocking_enabled(false);
|
ns->set_blocking_enabled(false);
|
||||||
return Ref<NetSocket>(ns);
|
return Ref<NetSocket>(ns);
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue