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

Unified Diff: src/common/android/include/link.h

Issue 2156173002: Don't define |r_debug| and |link_map| on Android releases 21 and later Base URL: https://chromium.googlesource.com/breakpad/breakpad.git@master
Patch Set: Created 4 years, 5 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/common/android/include/link.h
diff --git a/src/common/android/include/link.h b/src/common/android/include/link.h
index e7ff8e2d8702b0037921b50c99b94f02758f6e2a..c8c217631894868c07d65d7f54c6ae70e19d6bc5 100644
--- a/src/common/android/include/link.h
+++ b/src/common/android/include/link.h
@@ -43,6 +43,8 @@
extern "C" {
#endif // __cplusplus
+// The structures below are present in ndk 21 and later.
+#if defined(ANDROID) && ANDROID_VERSION <= 20
rmcilroy 2016/07/18 15:04:08 I don't think the defined(ANDROID) is needed - the
struct r_debug {
int r_version;
struct link_map* r_map;
@@ -61,6 +63,7 @@ struct link_map {
struct link_map* l_next;
struct link_map* l_prev;
};
+#endif
#ifdef __cplusplus
} // extern "C"
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698