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

Unified Diff: base/file_util_posix.cc

Issue 185713005: Add support for FreeBSD in base/ , base/process/ , and base/threading so that the bootstrap binary … (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | base/process/process_handle_freebsd.cc » ('j') | base/process/process_iterator_freebsd.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/file_util_posix.cc
diff --git a/base/file_util_posix.cc b/base/file_util_posix.cc
index f17b34161ca94312eaa153da27df038af23b0701..2c6eebe62fa93cf4b013f2bfa1fc0136c0fea167 100644
--- a/base/file_util_posix.cc
+++ b/base/file_util_posix.cc
@@ -675,7 +675,7 @@ bool GetFileInfo(const FilePath& file_path, File::Info* results) {
#endif // defined(OS_ANDROID)
results->is_directory = S_ISDIR(file_info.st_mode);
results->size = file_info.st_size;
-#if defined(OS_MACOSX)
+#if defined(OS_MACOSX) || (defined(OS_FREEBSD) && __FreeBSD_version < 900000)
Nico 2014/03/10 19:58:33 Is it reasonable to only support __FreeBSD_version
r.c.ladan 2014/03/10 20:08:02 FreeBSD 8.X will be supported until 2015-06-30, so
results->last_modified = Time::FromTimeSpec(file_info.st_mtimespec);
results->last_accessed = Time::FromTimeSpec(file_info.st_atimespec);
results->creation_time = Time::FromTimeSpec(file_info.st_ctimespec);
« no previous file with comments | « no previous file | base/process/process_handle_freebsd.cc » ('j') | base/process/process_iterator_freebsd.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698