Răsfoiți Sursa

libuv: Build unix tcp support during CMake bootstrap

Using the real `tcp.c` simplifies `cmake-bootstrap.c`, and its
implementation doesn't seem to require any of the platform-specific
definitions.  Also, later it will be needed for `uv_socketpair`.
Brad King 4 ani în urmă
părinte
comite
65fb29fdfb
2 a modificat fișierele cu 1 adăugiri și 17 ștergeri
  1. 0 17
      Utilities/cmlibuv/src/unix/cmake-bootstrap.c
  2. 1 0
      bootstrap

+ 0 - 17
Utilities/cmlibuv/src/unix/cmake-bootstrap.c

@@ -7,27 +7,10 @@ void uv__process_title_cleanup(void) {
 void uv__threadpool_cleanup(void) {
 }
 
-int uv__tcp_nodelay(int fd, int on) {
-  errno = EINVAL;
-  return -1;
-}
-
-int uv__tcp_keepalive(int fd, int on, unsigned int delay) {
-  errno = EINVAL;
-  return -1;
-}
-
-int uv_tcp_listen(uv_tcp_t* tcp, int backlog, uv_connection_cb cb) {
-  return -EINVAL;
-}
-
 int uv_udp_open(uv_udp_t* handle, uv_os_sock_t sock) {
   return -EINVAL;
 }
 
-void uv__tcp_close(uv_tcp_t* handle) {
-}
-
 void uv__udp_close(uv_udp_t* handle) {
 }
 

+ 1 - 0
bootstrap

@@ -625,6 +625,7 @@ else
     src/unix/process.c \
     src/unix/signal.c \
     src/unix/stream.c \
+    src/unix/tcp.c \
     "
 fi