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

Unified Diff: third_party/sqlite/sqlite.gyp

Issue 1035903002: Let sqlite use fdatasync() on Linux-based systems (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 9 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 | « third_party/sqlite/BUILD.gn ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/sqlite/sqlite.gyp
diff --git a/third_party/sqlite/sqlite.gyp b/third_party/sqlite/sqlite.gyp
index ed64e98d8d0f733939f4f95b799b80fc29dd260e..206ff262a548bc01ca364172393aa242ae25f198 100644
--- a/third_party/sqlite/sqlite.gyp
+++ b/third_party/sqlite/sqlite.gyp
@@ -62,6 +62,12 @@
'HAVE_USLEEP=1',
],
}],
+ ['OS == "linux" or OS == "android"', {
+ 'defines': [
+ # Linux provides fdatasync(), a faster equivalent of fsync().
+ 'fdatasync=fdatasync',
+ ],
+ }],
Scott Hess - ex-Googler 2015/03/26 17:46:00 I couldn't figure out if this should be here...
Scott Hess - ex-Googler 2015/03/26 21:51:07 I was updating my Linux client, so I patched your
hashimoto 2015/03/27 05:15:02 I chose this place because this |fdatasync| is use
['use_system_sqlite', {
'type': 'none',
'direct_dependent_settings': {
« no previous file with comments | « third_party/sqlite/BUILD.gn ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698