aboutsummaryrefslogtreecommitdiff
path: root/src/compat/stdin.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/compat/stdin.cpp')
-rw-r--r--src/compat/stdin.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compat/stdin.cpp b/src/compat/stdin.cpp
index 4e00bbf450..c11763f68f 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