summaryrefslogtreecommitdiff
path: root/src/keyboard.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/keyboard.c')
-rw-r--r--src/keyboard.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/keyboard.c b/src/keyboard.c
index e07e62be495..cde60632505 100644
--- a/src/keyboard.c
+++ b/src/keyboard.c
@@ -3322,10 +3322,9 @@ read_avail_input (expected)
Fix it for 19.23. */
/* Retry the read if it is interrupted. */
if (nread >= 0
-#ifdef EFAULT
- || ! (errno == EAGAIN || errno == EFAULT
-#else
|| ! (errno == EAGAIN
+#ifdef EFAULT
+ || errno == EFAULT
#endif
#ifdef EBADSLT
|| errno == EBADSLT