aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Schneider <asn@cryptomilk.org>2020-02-17 16:40:37 +0100
committerAndreas Schneider <asn@cryptomilk.org>2020-02-23 09:49:33 +0100
commit517bf15603aba37014b62553eb008e26f2a1db48 (patch)
tree70e979b1c92bd7a0f8ee22dbcf9a40c4b5b5fcb1
parent986db1adb491b5cb5936d2369816236847af26da (diff)
downloadrneovim-517bf15603aba37014b62553eb008e26f2a1db48.tar.gz
rneovim-517bf15603aba37014b62553eb008e26f2a1db48.tar.bz2
rneovim-517bf15603aba37014b62553eb008e26f2a1db48.zip
nvim:msgpack: Correctly set up global ch_before_blocking_events
gcc10 builds with -fno-common by default. This mean you can't define a global variable with the same name twice. See also https://bugzilla.redhat.com/show_bug.cgi?id=1799680
-rw-r--r--src/nvim/msgpack_rpc/channel.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/msgpack_rpc/channel.h b/src/nvim/msgpack_rpc/channel.h
index 9ff5abdc5f..90e1c7d48b 100644
--- a/src/nvim/msgpack_rpc/channel.h
+++ b/src/nvim/msgpack_rpc/channel.h
@@ -15,7 +15,7 @@
/// HACK: os/input.c drains this queue immediately before blocking for input.
/// Events on this queue are async-safe, but they need the resolved state
/// of os_inchar(), so they are processed "just-in-time".
-MultiQueue *ch_before_blocking_events;
+EXTERN MultiQueue *ch_before_blocking_events INIT(= NULL);
#ifdef INCLUDE_GENERATED_DECLARATIONS