Bug 706724 - Fix for error: ‘ftruncate’ was not declared in this scope. r=benjamin
authoraceman <acelists@atlas.sk>
Wed, 11 Jan 2012 10:46:54 +0100
changeset 84250 effb4811409b
parent 84249 6630cc3b20a7
child 84251 8202dc75af5d
push id21832
push userbmo@edmorley.co.uk
push date2012-01-11 17:04 +0000
treeherdermozilla-central@40c9f9ff9fd5 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbenjamin
bugs706724
milestone12.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 706724 - Fix for error: ‘ftruncate’ was not declared in this scope. r=benjamin
ipc/chromium/src/base/file_util.cc
--- a/ipc/chromium/src/base/file_util.cc
+++ b/ipc/chromium/src/base/file_util.cc
@@ -3,17 +3,17 @@
 // found in the LICENSE file.
 
 #include "base/file_util.h"
 
 #if defined(OS_WIN)
 #include <io.h>
 #endif
 #include <stdio.h>
-#if defined(ANDROID)
+#if defined(ANDROID) || defined(OS_POSIX)
 #include <unistd.h>
 #endif
 
 #include <fstream>
 
 #include "base/file_path.h"
 #include "base/logging.h"
 #include "base/string_util.h"