From 97d3809a172d749f2ebc1d8650527342e96e6ad5 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Thu, 26 Mar 2020 14:46:00 +0100 Subject: [PATCH] js: Fix build on Linux Apparently ESUCCESS is not a thing on my host machine. --- Userland/js.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Userland/js.cpp b/Userland/js.cpp index ee96818639..ddf3410180 100644 --- a/Userland/js.cpp +++ b/Userland/js.cpp @@ -55,7 +55,7 @@ String read_next_piece() size_t allocated_size = 0; ssize_t nread = getline(&line, &allocated_size, stdin); if (nread < 0) { - if (errno == ESUCCESS) { + if (errno == 0) { // Explicit EOF; stop reading. Print a newline though, to make // the next prompt (or the shell prompt) appear on the next // line.