diff options
| author | Matěj Cepl <mcepl@cepl.eu> | 2020-04-11 14:15:24 +0200 |
|---|---|---|
| committer | Matěj Cepl <mcepl@cepl.eu> | 2020-04-21 10:14:07 +0200 |
| commit | 770a0ac2df8b474fb0013ce662a9ccac7390b3c7 (patch) | |
| tree | ab3daed33e167e1b58f1b5f3282b871973c71482 /src/nvim/event | |
| parent | 9678fe4cfba9f7a9dacbd6d5a56c58241e98aa60 (diff) | |
| download | rneovim-770a0ac2df8b474fb0013ce662a9ccac7390b3c7.tar.gz rneovim-770a0ac2df8b474fb0013ce662a9ccac7390b3c7.tar.bz2 rneovim-770a0ac2df8b474fb0013ce662a9ccac7390b3c7.zip | |
Make neovim building even with libuv 1.18.0
(found for example on openSUSE/Leap 15.*)
Diffstat (limited to 'src/nvim/event')
| -rw-r--r-- | src/nvim/event/stream.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/nvim/event/stream.c b/src/nvim/event/stream.c index d1a53fa4b6..a5f8f83d65 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) +#ifndef uv_stream_get_write_queue_size +#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. |