Browse Source

Optional Unix Socket disable for devices that do not support it

(cherry picked from commit fe068b61ad4355372e454dc5bbaec0c42d58d67b)
Jairo 5 years ago
parent
commit
f18a8d3ffc
1 changed files with 2 additions and 0 deletions
  1. 2 0
      drivers/unix/net_socket_posix.cpp

+ 2 - 0
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>
@@ -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