Bug 648735 - Define stat64 to stat on Open/FreeBSD, since they don't have stat64() but stat handles >2Gb files fine; r=cjones

lifted from freebsd's www/firefox/files/patch-ipc-chromium-src-base-file_util_posix.cc
and https://bugzilla.mozilla.org/attachment.cgi?id=527621
This commit is contained in:
Landry Breuil 2011-09-20 13:23:03 +01:00
Родитель 44eb5f7273
Коммит 9b7baee087
1 изменённых файлов: 5 добавлений и 0 удалений

Просмотреть файл

@ -30,6 +30,11 @@
#include "base/string_util.h"
#include "base/time.h"
// FreeBSD/OpenBSD lacks stat64, but its stat handles files >2GB just fine
#if defined(OS_FREEBSD) || defined(OS_OPENBSD)
#define stat64 stat
#endif
namespace file_util {
#if defined(GOOGLE_CHROME_BUILD)