summaryrefslogtreecommitdiffstats
path: root/base/file_util_posix.cc
diff options
context:
space:
mode:
authormaf@google.com <maf@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-09-15 22:42:59 +0000
committermaf@google.com <maf@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-09-15 22:42:59 +0000
commit9543af0553bba7adab97d3a8a358510449dc2e60 (patch)
tree3eccebdd899ce50369f42b99a46cd04197664ed9 /base/file_util_posix.cc
parenta52225ef714d58b30cf87e794f0082a1445b6626 (diff)
downloadchromium_src-9543af0553bba7adab97d3a8a358510449dc2e60.zip
chromium_src-9543af0553bba7adab97d3a8a358510449dc2e60.tar.gz
chromium_src-9543af0553bba7adab97d3a8a358510449dc2e60.tar.bz2
Changes needed for MacOS X 10.4 support.
Add "support_macosx_10_4" option to common.gypi that causes it to change deployment target, and define a new preprocessor symbol on the Mac build. Setting this flag to true is harmless on non Mac builds and has no effect. Make various changes to source files where they modify their behavior in the presence of the new preprocessor symbol to become 10.4 compatible. Review URL: http://codereview.chromium.org/201122 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@26285 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/file_util_posix.cc')
-rw-r--r--base/file_util_posix.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/base/file_util_posix.cc b/base/file_util_posix.cc
index 0b7763e..bd18a83 100644
--- a/base/file_util_posix.cc
+++ b/base/file_util_posix.cc
@@ -32,6 +32,7 @@
#include "base/time.h"
#include "unicode/coll.h"
+
namespace {
class LocaleAwareComparator {
@@ -82,7 +83,7 @@ class LocaleAwareComparator {
namespace file_util {
-#if defined(OS_FREEBSD)
+#if defined(OS_FREEBSD) || defined(SUPPORT_MACOSX_10_4)
typedef struct stat stat_wrapper_t;
static int CallStat(const char *path, stat_wrapper_t *sb) {
return stat(path, sb);