mirror of
https://git.freebsd.org/ports.git
synced 2025-06-07 13:50:38 -04:00
Fix the crash when closing the history/settings tab [1] Submitted by: John Carr <jfc@mit.edu> via freebsd-chromium [1] Security: http://vuxml.org/freebsd/9dd47fa3-9d53-11e3-b20f-00262d5ed8ee.html [0]
11 lines
597 B
C++
11 lines
597 B
C++
--- base/file_util_posix.cc.orig 2014-02-20 21:28:47.000000000 +0100
|
|
+++ base/file_util_posix.cc 2014-02-24 15:44:01.000000000 +0100
|
|
@@ -673,7 +673,7 @@
|
|
#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)
|
|
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);
|