1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 19:47:44 +00:00

js: Fix build on Linux

Apparently ESUCCESS is not a thing on my host machine.
This commit is contained in:
Andreas Kling 2020-03-26 14:46:00 +01:00
parent 4802413f71
commit 97d3809a17

View file

@ -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.