aboutsummaryrefslogtreecommitdiffstats
path: root/io.c
diff options
context:
space:
mode:
Diffstat (limited to 'io.c')
-rw-r--r--io.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/io.c b/io.c
index f3b83da7d4..ecc297117d 100644
--- a/io.c
+++ b/io.c
@@ -400,7 +400,7 @@ rb_io_fwrite(ptr, len, f)
long n, r;
if ((n = len) <= 0) return n;
-#if defined __human68k__ || defined __BORLANDC__
+#if defined __human68k__
do {
if (fputc(*ptr++, f) == EOF) {
if (ferror(f)) return -1L;
@@ -411,7 +411,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 == EBAF
+ || errno == EBADF || errno == ENOENT
#endif
) {
#ifdef __hpux