summaryrefslogtreecommitdiffstats
path: root/input
diff options
context:
space:
mode:
Diffstat (limited to 'input')
-rw-r--r--input/pipe.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/input/pipe.c b/input/pipe.c
index 3740c22168..59f6a64c2b 100644
--- a/input/pipe.c
+++ b/input/pipe.c
@@ -41,7 +41,7 @@ static void *reader_thread(void *ctx)
int fd = -1;
bool close_fd = true;
if (strcmp(p->filename, "/dev/stdin") == 0) { // mainly for win32
- fd = fileno(stdin);
+ fd = STDIN_FILENO;
close_fd = false;
}
if (fd < 0)