Index: build/config/compiler/BUILD.gn |
diff --git a/build/config/compiler/BUILD.gn b/build/config/compiler/BUILD.gn |
index 27167c62d3f84bc8e3cf9673b05d0a884a3b1896..b428f4b4ce7bc68e88c2c5a44056dac89d9b1291 100644 |
--- a/build/config/compiler/BUILD.gn |
+++ b/build/config/compiler/BUILD.gn |
@@ -326,6 +326,13 @@ config("compiler") { |
defines += [ "_FILE_OFFSET_BITS=64" ] |
+ if (!is_android) { |
+ defines += [ |
+ "_LARGEFILE_SOURCE", |
+ "_LARGEFILE64_SOURCE", |
+ ] |
+ } |
+ |
# Omit unwind support in official builds to save space. We can use breakpad |
# for these builds. |
if (is_chrome_branded && is_official_build) { |