diff options
author | Brad King <brad.king@kitware.com> | 2021-11-16 17:20:30 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2021-11-17 11:36:30 (GMT) |
commit | 65fb29fdfbe1663fe0f050214c43bf24238fbbfe (patch) | |
tree | 83766306b9e38db0fb68f31357bb639ea677fa66 | |
parent | d98b61c68770150e4773ce30eb8145ad487016da (diff) | |
download | CMake-65fb29fdfbe1663fe0f050214c43bf24238fbbfe.zip CMake-65fb29fdfbe1663fe0f050214c43bf24238fbbfe.tar.gz CMake-65fb29fdfbe1663fe0f050214c43bf24238fbbfe.tar.bz2 |
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`.
-rw-r--r-- | Utilities/cmlibuv/src/unix/cmake-bootstrap.c | 17 | ||||
-rwxr-xr-x | bootstrap | 1 |
2 files changed, 1 insertions, 17 deletions
diff --git a/Utilities/cmlibuv/src/unix/cmake-bootstrap.c b/Utilities/cmlibuv/src/unix/cmake-bootstrap.c index 054775e..77f26d9 100644 --- a/Utilities/cmlibuv/src/unix/cmake-bootstrap.c +++ b/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) { } @@ -625,6 +625,7 @@ else src/unix/process.c \ src/unix/signal.c \ src/unix/stream.c \ + src/unix/tcp.c \ " fi |