Small compatibility updates.

This commit is contained in:
Markus F.X.J. Oberhumer
2009-09-21 05:41:49 +02:00
parent 29576da985
commit 967ecafc33
3 changed files with 36 additions and 16 deletions
+1
View File
@@ -366,6 +366,7 @@ off_t OutputFile::st_size() const
return bytes_written; // too big if seek()+write() instead of rewrite()
}
struct stat my_st;
my_st.st_size = 0;
if (::fstat(_fd, &my_st) != 0)
throwIOException(_name, errno);
return my_st.st_size;