aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordundargoc <gocdundar@gmail.com>2024-12-23 15:14:40 +0100
committerdundargoc <33953936+dundargoc@users.noreply.github.com>2024-12-23 16:07:09 +0100
commit25abcd243e413f960a7a58a44689e8bfbbc3dec7 (patch)
tree83e6a8ec24129892fbbd9924a386c268a750363d
parent2a7d0ed6145bf3f8b139c2694563f460f829813a (diff)
downloadrneovim-25abcd243e413f960a7a58a44689e8bfbbc3dec7.tar.gz
rneovim-25abcd243e413f960a7a58a44689e8bfbbc3dec7.tar.bz2
rneovim-25abcd243e413f960a7a58a44689e8bfbbc3dec7.zip
fix: fix broken wasmtime build
Regression from 2a7d0ed6145bf3f8b139c2694563f460f829813a, which removed header that is only needed if wasmtime support is enabled. Prevent this from happening again by wrapping the include in a `HAVE_WASMTIME` check.
-rw-r--r--src/nvim/lua/treesitter.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/nvim/lua/treesitter.c b/src/nvim/lua/treesitter.c
index 3e5d3e24fe..28ad2cf4d3 100644
--- a/src/nvim/lua/treesitter.c
+++ b/src/nvim/lua/treesitter.c
@@ -17,6 +17,8 @@
#ifdef HAVE_WASMTIME
# include <wasm.h>
+
+# include "nvim/os/fs.h"
#endif
#include "nvim/api/private/helpers.h"