aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMatěj Cepl <mcepl@cepl.eu>2020-04-21 10:22:45 +0200
committerMatěj Cepl <mcepl@cepl.eu>2020-04-21 11:03:13 +0200
commite8dd2c986c4f93c58e74311ab08b614eb6270c70 (patch)
tree2c2561bdf4bb2dba9b17f66509c3829716a80d4d /src
parent770a0ac2df8b474fb0013ce662a9ccac7390b3c7 (diff)
downloadrneovim-e8dd2c986c4f93c58e74311ab08b614eb6270c70.tar.gz
rneovim-e8dd2c986c4f93c58e74311ab08b614eb6270c70.tar.bz2
rneovim-e8dd2c986c4f93c58e74311ab08b614eb6270c70.zip
Test on actual libuv version number, not on existence of symbol.
uv_stream_get_write_queue_size isn't a define, it's a function. It seems like this would always be shadowing the actual function name.
Diffstat (limited to 'src')
-rw-r--r--src/nvim/event/stream.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/event/stream.c b/src/nvim/event/stream.c
index a5f8f83d65..0e87f7c6c1 100644
--- a/src/nvim/event/stream.c
+++ b/src/nvim/event/stream.c
@@ -17,7 +17,7 @@
#endif
// For compatbility with libuv < 1.19.0 (tested on 1.18.0)
-#ifndef uv_stream_get_write_queue_size
+#if UV_VERSION_MINOR < 19
#define uv_stream_get_write_queue_size(stream) stream->write_queue_size
#endif