diff options
Diffstat (limited to 'file.c')
-rw-r--r-- | file.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -3173,7 +3173,7 @@ rb_file_truncate(VALUE obj, VALUE len) rb_raise(rb_eIOError, "not opened for writing"); } rb_io_flush(obj); -#ifdef HAVE_TRUNCATE +#ifdef HAVE_FTRUNCATE if (ftruncate(fptr->fd, pos) < 0) rb_sys_fail(fptr->path); #else |