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

Unified Diff: third_party/sqlite/sqlite.gyp

Issue 1437823005: [sql] uClibc doesn't provide malloc_usable_size(). (Closed) Base URL: http://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 1 month 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
Index: third_party/sqlite/sqlite.gyp
diff --git a/third_party/sqlite/sqlite.gyp b/third_party/sqlite/sqlite.gyp
index e8ad2102d0048a85537d2f70928c20e5e1823b04..d0357b7de70e5f3dcbb38431618cb639c1d4c108 100644
--- a/third_party/sqlite/sqlite.gyp
+++ b/third_party/sqlite/sqlite.gyp
@@ -79,14 +79,11 @@
'fdatasync=fdatasync',
],
}],
- # SQLite wants to track malloc sizes. On OSX it uses malloc_size(), on
- # Windows _msize(), elsewhere it handles it manually by enlarging the
- # malloc and injecting a field. Enable malloc_usable_size() for Linux.
- # NOTE(shess): Android does _not_ export malloc_usable_size().
+ # Pull in config.h on Linux. This allows use of preprocessor macros
+ # which are not available to the build config.
['OS == "linux"', {
'defines': [
- 'HAVE_MALLOC_H',
- 'HAVE_MALLOC_USABLE_SIZE',
+ '_HAVE_SQLITE_CONFIG_H',
],
}],
['use_system_sqlite', {
@@ -136,6 +133,7 @@
'product_name': 'chromium_sqlite3',
'type': '<(component)',
'sources': [
+ 'amalgamation/config.h',
'amalgamation/sqlite3.h',
'amalgamation/sqlite3.c',
],
« third_party/sqlite/amalgamation/config.h ('K') | « third_party/sqlite/amalgamation/config.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698