Index: third_party/sqlite/sqlite.gyp |
diff --git a/third_party/sqlite/sqlite.gyp b/third_party/sqlite/sqlite.gyp |
index 3e55b1103cd777db100f11d5437241d90b1906be..bb18457a34cce499db03b65091b0b162bb2e6085 100644 |
--- a/third_party/sqlite/sqlite.gyp |
+++ b/third_party/sqlite/sqlite.gyp |
@@ -33,6 +33,16 @@ |
], |
}, |
], |
+ ['os_posix == 1', { |
+ 'defines': [ |
+ # Allow xSleep() call on Unix to use usleep() rather than sleep(). |
+ # Microsecond precision is better than second precision. Should |
+ # only affect contended databases via the busy callback. Browser |
+ # profile databases are mostly exclusive, but renderer databases may |
+ # allow for contention. |
+ 'HAVE_USLEEP=1', |
+ ], |
+ }], |
['use_system_sqlite', { |
'type': 'none', |
'direct_dependent_settings': { |
@@ -132,7 +142,6 @@ |
}], |
['OS == "android"', { |
'defines': [ |
- 'HAVE_USLEEP=1', |
'SQLITE_DEFAULT_JOURNAL_SIZE_LIMIT=1048576', |
'SQLITE_DEFAULT_AUTOVACUUM=1', |
'SQLITE_TEMP_STORE=3', |