532
|
1 |
# HG changeset patch
|
|
2 |
# Parent 99660507abe258fca89e10da3cb245bdb4282810
|
|
3 |
# User Wolfgang Rosenauer <wr@rosenauer.org>
|
|
4 |
Bug 706724 - firefox-beta repository: file_util.cc:228:35: error: ‘ftruncate’ was not declared in this scope
|
|
5 |
|
|
6 |
diff --git a/ipc/chromium/src/base/file_util.cc b/ipc/chromium/src/base/file_util.cc
|
|
7 |
--- a/ipc/chromium/src/base/file_util.cc
|
|
8 |
+++ b/ipc/chromium/src/base/file_util.cc
|
|
9 |
@@ -3,17 +3,17 @@
|
|
10 |
// found in the LICENSE file.
|
|
11 |
|
|
12 |
#include "base/file_util.h"
|
|
13 |
|
|
14 |
#if defined(OS_WIN)
|
|
15 |
#include <io.h>
|
|
16 |
#endif
|
|
17 |
#include <stdio.h>
|
|
18 |
-#if defined(ANDROID)
|
|
19 |
+#if defined(ANDROID) || defined(OS_POSIX)
|
|
20 |
#include <unistd.h>
|
|
21 |
#endif
|
|
22 |
|
|
23 |
#include <fstream>
|
|
24 |
|
|
25 |
#include "base/file_path.h"
|
|
26 |
#include "base/logging.h"
|
|
27 |
#include "base/string_util.h"
|