diff --git a/src/compat/stdin.cpp b/src/compat/stdin.cpp index 4e00bbf4507..c11763f68fd 100644 --- a/src/compat/stdin.cpp +++ b/src/compat/stdin.cpp @@ -58,7 +58,7 @@ bool StdinReady() return false; #else struct pollfd fds; - fds.fd = 0; /* this is STDIN */ + fds.fd = STDIN_FILENO; fds.events = POLLIN; return poll(&fds, 1, 0) == 1; #endif