diff options
author | ted.mielczarek <ted.mielczarek@4c0a9323-5329-0410-9bdc-e9ce6186880e> | 2010-10-20 15:51:38 +0000 |
---|---|---|
committer | ted.mielczarek <ted.mielczarek@4c0a9323-5329-0410-9bdc-e9ce6186880e> | 2010-10-20 15:51:38 +0000 |
commit | cfc8628092e17069d8d6c7068d4f21d9baabe077 (patch) | |
tree | 43e9d016602ec4944511a3f02981a004a6225ef5 /src/client/linux/minidump_writer/line_reader_unittest.cc | |
parent | Double stack scanning length in stackwalker (diff) | |
download | breakpad-cfc8628092e17069d8d6c7068d4f21d9baabe077.tar.xz |
Add support for building the Linux client code using the Android NDK
r=mwu at http://breakpad.appspot.com/212001/show
git-svn-id: http://google-breakpad.googlecode.com/svn/trunk@716 4c0a9323-5329-0410-9bdc-e9ce6186880e
Diffstat (limited to 'src/client/linux/minidump_writer/line_reader_unittest.cc')
-rw-r--r-- | src/client/linux/minidump_writer/line_reader_unittest.cc | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/client/linux/minidump_writer/line_reader_unittest.cc b/src/client/linux/minidump_writer/line_reader_unittest.cc index 7c4c3ced..a2ea17f7 100644 --- a/src/client/linux/minidump_writer/line_reader_unittest.cc +++ b/src/client/linux/minidump_writer/line_reader_unittest.cc @@ -36,8 +36,14 @@ using namespace google_breakpad; +#if !defined(__ANDROID__) +#define TEMPDIR "/tmp" +#else +#define TEMPDIR "/data/local/tmp" +#endif + static int TemporaryFile() { - static const char templ[] = "/tmp/line-reader-unittest-XXXXXX"; + static const char templ[] = TEMPDIR "/line-reader-unittest-XXXXXX"; char templ_copy[sizeof(templ)]; memcpy(templ_copy, templ, sizeof(templ)); const int fd = mkstemp(templ_copy); |