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`.
This commit is contained in:
Brad King
2021-11-16 12:20:30 -05:00
parent d98b61c687
commit 65fb29fdfb
2 changed files with 1 additions and 17 deletions

View File

@@ -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) {
}

View File

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