diff options
author | James McCoy <jamessan@jamessan.com> | 2020-04-21 08:00:42 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-21 08:00:42 -0400 |
commit | e58a03a68eb76f1205a9851c34d39dbd3834f656 (patch) | |
tree | 2c2561bdf4bb2dba9b17f66509c3829716a80d4d /src | |
parent | 9678fe4cfba9f7a9dacbd6d5a56c58241e98aa60 (diff) | |
parent | e8dd2c986c4f93c58e74311ab08b614eb6270c70 (diff) | |
download | rneovim-e58a03a68eb76f1205a9851c34d39dbd3834f656.tar.gz rneovim-e58a03a68eb76f1205a9851c34d39dbd3834f656.tar.bz2 rneovim-e58a03a68eb76f1205a9851c34d39dbd3834f656.zip |
Merge pull request #12108 from mcepl/luv-1.18.0-compat
Diffstat (limited to 'src')
-rw-r--r-- | src/nvim/event/stream.c | 5 | ||||
-rw-r--r-- | src/nvim/fileio.c | 5 |
2 files changed, 10 insertions, 0 deletions
diff --git a/src/nvim/event/stream.c b/src/nvim/event/stream.c index d1a53fa4b6..0e87f7c6c1 100644 --- a/src/nvim/event/stream.c +++ b/src/nvim/event/stream.c @@ -16,6 +16,11 @@ # include "event/stream.c.generated.h" #endif +// For compatbility with libuv < 1.19.0 (tested on 1.18.0) +#if UV_VERSION_MINOR < 19 +#define uv_stream_get_write_queue_size(stream) stream->write_queue_size +#endif + /// Sets the stream associated with `fd` to "blocking" mode. /// /// @return `0` on success, or libuv error code on failure. diff --git a/src/nvim/fileio.c b/src/nvim/fileio.c index 88e9390c65..8da1c94219 100644 --- a/src/nvim/fileio.c +++ b/src/nvim/fileio.c @@ -62,6 +62,11 @@ #define BUFSIZE 8192 /* size of normal write buffer */ #define SMBUFSIZE 256 /* size of emergency write buffer */ +// For compatibility with libuv < 1.20.0 (tested on 1.18.0) +#ifndef UV_FS_COPYFILE_FICLONE +#define UV_FS_COPYFILE_FICLONE 0 +#endif + // // The autocommands are stored in a list for each event. // Autocommands for the same pattern, that are consecutive, are joined |