mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 03:57:43 +00:00
js: Fix build on Linux
Apparently ESUCCESS is not a thing on my host machine.
This commit is contained in:
parent
4802413f71
commit
97d3809a17
1 changed files with 1 additions and 1 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue