Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(203)

Issue 10808037: Update #if guards in base/ that control whether to use stat or stat64 (and friends). (Closed)

Created:
8 years, 5 months ago by Robert Sesek
Modified:
8 years, 5 months ago
Reviewers:
Mark Mentovai
CC:
chromium-reviews, erikwright (departed), brettw-cc_chromium.org
Visibility:
Public.

Description

Update #if guards in base/ that control whether to use stat or stat64 (and friends). Mac SDKs earlier than 10.5 did not define fstat64. The 10.5 SDK defined both fstat and fstat64. And in the 10.6 SDK, fstat64 is deprecated and the right implementation is selected at runtime. This makes the use of fstat unconditional on OS_MACOSX now that the build SDK is 10.6. BUG=137676 TEST=compiles Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=147554

Patch Set 1 #

Total comments: 2

Patch Set 2 : MACOSX < IOS #

Unified diffs Side-by-side diffs Delta from patch set Stats (+2 lines, -4 lines) Patch
M base/file_util_posix.cc View 1 1 chunk +1 line, -2 lines 0 comments Download
M base/platform_file_posix.cc View 1 1 chunk +1 line, -2 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
Robert Sesek
8 years, 5 months ago (2012-07-19 20:34:27 UTC) #1
Mark Mentovai
Same comment in both files. https://chromiumcodereview.appspot.com/10808037/diff/1/base/file_util_posix.cc File base/file_util_posix.cc (right): https://chromiumcodereview.appspot.com/10808037/diff/1/base/file_util_posix.cc#newcode61 base/file_util_posix.cc:61: #if defined(OS_BSD) || defined(OS_IOS) ...
8 years, 5 months ago (2012-07-19 20:38:41 UTC) #2
Robert Sesek
https://chromiumcodereview.appspot.com/10808037/diff/1/base/file_util_posix.cc File base/file_util_posix.cc (right): https://chromiumcodereview.appspot.com/10808037/diff/1/base/file_util_posix.cc#newcode61 base/file_util_posix.cc:61: #if defined(OS_BSD) || defined(OS_IOS) || defined(OS_MACOSX) On 2012/07/19 20:38:41, ...
8 years, 5 months ago (2012-07-19 20:43:01 UTC) #3
Mark Mentovai
LGTM
8 years, 5 months ago (2012-07-19 20:47:53 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rsesek@chromium.org/10808037/3002
8 years, 5 months ago (2012-07-19 20:53:48 UTC) #5
commit-bot: I haz the power
8 years, 5 months ago (2012-07-19 22:24:04 UTC) #6
Change committed as 147554

Powered by Google App Engine
This is Rietveld 408576698