Index: third_party/crashpad/crashpad/compat/android/linux/prctl.h |
diff --git a/third_party/crashpad/crashpad/minidump/minidump_user_extension_stream_data_source.cc b/third_party/crashpad/crashpad/compat/android/linux/prctl.h |
similarity index 56% |
copy from third_party/crashpad/crashpad/minidump/minidump_user_extension_stream_data_source.cc |
copy to third_party/crashpad/crashpad/compat/android/linux/prctl.h |
index 8056011cf021b0cccafdbcf6286caf9e0f70ed5a..046f900f0a0513d797714ab414c8e62a2a17388a 100644 |
--- a/third_party/crashpad/crashpad/minidump/minidump_user_extension_stream_data_source.cc |
+++ b/third_party/crashpad/crashpad/compat/android/linux/prctl.h |
@@ -12,19 +12,14 @@ |
// See the License for the specific language governing permissions and |
// limitations under the License. |
-#include "minidump/minidump_user_extension_stream_data_source.h" |
+#ifndef CRASHPAD_COMPAT_ANDROID_LINUX_PRCTL_H_ |
+#define CRASHPAD_COMPAT_ANDROID_LINUX_PRCTL_H_ |
-namespace crashpad { |
+#include_next <linux/prctl.h> |
-MinidumpUserExtensionStreamDataSource::MinidumpUserExtensionStreamDataSource( |
- uint32_t stream_type, |
- const void* buffer, |
- size_t buffer_size) |
- : stream_type_(static_cast<MinidumpStreamType>(stream_type)), |
- buffer_(buffer), |
- buffer_size_(buffer_size) {} |
+// Android 5.0.0 (API 21) NDK |
+#if !defined(PR_SET_PTRACER) |
+#define PR_SET_PTRACER 0x59616d61 |
+#endif |
-MinidumpUserExtensionStreamDataSource:: |
- ~MinidumpUserExtensionStreamDataSource() {} |
- |
-} // namespace crashpad |
+#endif // CRASHPAD_COMPAT_ANDROID_LINUX_PRCTL_H_ |