about summary refs log tree commit diff
path: root/Src/utils.c
diff options
context:
space:
mode:
authorTanaka Akira <akr@users.sourceforge.net>1999-08-06 18:01:35 +0000
committerTanaka Akira <akr@users.sourceforge.net>1999-08-06 18:01:35 +0000
commit784c413690c71212ad9e08bb093414abd1cacc08 (patch)
tree450cc9242047dd50255af3b1ef940dae5bb3ab39 /Src/utils.c
parent61e68d70da5af5afe943f92cd94a8c96e78348d9 (diff)
downloadzsh-784c413690c71212ad9e08bb093414abd1cacc08.tar.gz
zsh-784c413690c71212ad9e08bb093414abd1cacc08.tar.xz
zsh-784c413690c71212ad9e08bb093414abd1cacc08.zip
zsh-3.1.6-pws-1 zsh-3.1.6-pws-1
Diffstat (limited to 'Src/utils.c')
-rw-r--r--Src/utils.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Src/utils.c b/Src/utils.c
index f86c18b16..b982b4767 100644
--- a/Src/utils.c
+++ b/Src/utils.c
@@ -1249,7 +1249,7 @@ setblock_stdin(void)
     long mode;
 
     if (!fstat(0, &st) && !S_ISREG(st.st_mode)) {
-	mode = fcntl(0, F_GETFL);
+	mode = fcntl(0, F_GETFL, 0);
 	if (mode != -1 && (mode & NONBLOCK) &&
 	    !fcntl(0, F_SETFL, mode & ~NONBLOCK))
 	    return 1;