Patch from Zhurun to fix build breaks in gcc 4.4.1

CR URL: http://breakpad.appspot.com/100001/show

A=Zhurun
R=nealsid


git-svn-id: http://google-breakpad.googlecode.com/svn/trunk@573 4c0a9323-5329-0410-9bdc-e9ce6186880e
This commit is contained in:
nealsid 2010-04-26 23:52:50 +00:00
parent 089003b7f6
commit d5b689e7af
2 changed files with 31 additions and 14 deletions

View file

@ -68,7 +68,9 @@ bool MinidumpFileWriter::Close() {
bool result = true;
if (file_ != -1) {
ftruncate(file_, position_);
if (-1 == ftruncate(file_, position_)) {
return false;
}
#if __linux__
result = (sys_close(file_) == 0);
#else