summaryrefslogtreecommitdiff
path: root/io.c
diff options
context:
space:
mode:
Diffstat (limited to 'io.c')
-rw-r--r--io.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/io.c b/io.c
index 00f97be61a..363e839cb7 100644
--- a/io.c
+++ b/io.c
@@ -396,7 +396,7 @@ rb_io_fwrite(ptr, len, f)
while (errno = 0, ptr += (r = fwrite(ptr, 1, n, f)), (n -= r) > 0) {
if (ferror(f)
#if defined __BORLANDC__
- || errno == EBADF || errno == ENOENT
+ || errno
#endif
) {
#ifdef __hpux