diff options
author | Brad King <brad.king@kitware.com> | 2022-09-22 18:16:31 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2022-09-27 13:50:38 (GMT) |
commit | 23de1675fd100b8e088b267665d184d3f39bb12b (patch) | |
tree | 91a8afe78166a46ca14df591f0d1123bbd4f9107 /Utilities | |
parent | ff82df301c6db009200cbe3869fa03b86a573253 (diff) | |
download | CMake-23de1675fd100b8e088b267665d184d3f39bb12b.zip CMake-23de1675fd100b8e088b267665d184d3f39bb12b.tar.gz CMake-23de1675fd100b8e088b267665d184d3f39bb12b.tar.bz2 |
libuv: Update CMake-internal buildsystem for 1.44.2
Diffstat (limited to 'Utilities')
-rw-r--r-- | Utilities/cmlibuv/CMakeLists.txt | 2 | ||||
-rw-r--r-- | Utilities/cmlibuv/src/unix/cmake-bootstrap.c | 2 | ||||
-rw-r--r-- | Utilities/cmlibuv/src/unix/tty.c | 6 |
3 files changed, 10 insertions, 0 deletions
diff --git a/Utilities/cmlibuv/CMakeLists.txt b/Utilities/cmlibuv/CMakeLists.txt index b815a5c..ad3d433 100644 --- a/Utilities/cmlibuv/CMakeLists.txt +++ b/Utilities/cmlibuv/CMakeLists.txt @@ -27,6 +27,8 @@ set(uv_sources src/queue.h src/strscpy.c src/strscpy.h + src/strtok.c + src/strtok.h src/threadpool.c src/timer.c src/uv-common.c diff --git a/Utilities/cmlibuv/src/unix/cmake-bootstrap.c b/Utilities/cmlibuv/src/unix/cmake-bootstrap.c index 0f279d5..394231d 100644 --- a/Utilities/cmlibuv/src/unix/cmake-bootstrap.c +++ b/Utilities/cmlibuv/src/unix/cmake-bootstrap.c @@ -135,7 +135,9 @@ int uv__statx(int dirfd, errno = ENOSYS; return -1; } +#endif +#if defined(__linux__) || defined(__FreeBSD__) ssize_t uv__fs_copy_file_range(int fd_in, off_t* off_in, int fd_out, off_t* off_out, size_t len, unsigned int flags) diff --git a/Utilities/cmlibuv/src/unix/tty.c b/Utilities/cmlibuv/src/unix/tty.c index 66e6bca..44fdb9c 100644 --- a/Utilities/cmlibuv/src/unix/tty.c +++ b/Utilities/cmlibuv/src/unix/tty.c @@ -62,6 +62,8 @@ static int isreallyatty(int file) { #define isatty(fd) isreallyatty(fd) #endif +#if !defined(CMAKE_BOOTSTRAP) + static int orig_termios_fd = -1; static struct termios orig_termios; static uv_spinlock_t termios_spinlock = UV_SPINLOCK_INITIALIZER; @@ -344,6 +346,7 @@ int uv_tty_get_winsize(uv_tty_t* tty, int* width, int* height) { return 0; } +#endif uv_handle_type uv_guess_handle(uv_file file) { struct sockaddr_storage ss; @@ -432,6 +435,7 @@ uv_handle_type uv_guess_handle(uv_file file) { return UV_UNKNOWN_HANDLE; } +#if !defined(CMAKE_BOOTSTRAP) /* This function is async signal-safe, meaning that it's safe to call from * inside a signal handler _unless_ execution was inside uv_tty_set_mode()'s @@ -461,3 +465,5 @@ void uv_tty_set_vterm_state(uv_tty_vtermstate_t state) { int uv_tty_get_vterm_state(uv_tty_vtermstate_t* state) { return UV_ENOTSUP; } + +#endif |