diff --git a/src/json_ui.cc b/src/json_ui.cc index 05f0d38b..9b562026 100644 --- a/src/json_ui.cc +++ b/src/json_ui.cc @@ -9,6 +9,8 @@ #include +#include + namespace Kakoune { @@ -405,7 +407,7 @@ void JsonUI::parse_requests(EventMode mode) char buf[bufsize]; while (stdin_ready()) { - ssize_t size = read(0, buf, bufsize); + ssize_t size = ::read(0, buf, bufsize); if (size == -1 or size == 0) break;