diff options
author | Tor Lillqvist <tml@collabora.com> | 2014-08-30 00:33:42 +0300 |
---|---|---|
committer | Tor Lillqvist <tml@collabora.com> | 2014-08-30 01:03:33 +0300 |
commit | 5c004922b2fc167c826350085f7d996d93b4398e (patch) | |
tree | b7a03c82f4afa588015992e334b612ac0cd50bca /sal/android | |
parent | 0da23c09222caecdf5944c1f2da17dddeb10f1c5 (diff) |
Start of support for Android on AArch64
The build does not get far before it runs into trouble in the GNU libstdc++
headers, though:
android-ndk-r10/sources/cxx-stl/gnu-libstdc++/4.9/libs/x86/include/bits/opt_random.h:33:23:
fatal error: x86intrin.h: No such file or directory
Change-Id: I9d459c64980091ba8bf5b3d631d47342625f6be9
Diffstat (limited to 'sal/android')
-rw-r--r-- | sal/android/lo-bootstrap.c | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/sal/android/lo-bootstrap.c b/sal/android/lo-bootstrap.c index d1a7521fb0d0..f7a381ec3801 100644 --- a/sal/android/lo-bootstrap.c +++ b/sal/android/lo-bootstrap.c @@ -395,14 +395,16 @@ Java_org_libreoffice_android_Bootstrap_putenv(JNIEnv* env, jstring string) { const char *s; + char *s_copy; (void) clazz; s = (*env)->GetStringUTFChars(env, string, NULL); + s_copy = strdup(s); - LOGI("putenv(%s)", s); + LOGI("putenv(%s)", s_copy); - putenv(s); + putenv(s_copy); #if 0 { @@ -777,7 +779,7 @@ extract_files(const char *root, strcat(newfilename, dent->d_name); if (stat(newfilename, &st) == 0 && - (gzipped || st.st_size == size)) { + (gzipped || st.st_size == (long long) size)) { free(filename); free(newfilename); continue; @@ -793,13 +795,13 @@ extract_files(const char *root, if (!gzipped) { if (fwrite(apkentry, size, 1, f) != 1) { - LOGE("extract_files: Could not write %d bytes to %s: %s", size, newfilename, strerror(errno)); + LOGE("extract_files: Could not write %lld bytes to %s: %s", (long long) size, newfilename, strerror(errno)); } else { - LOGI("extract_files: Copied %s to %s: %d bytes", filename, newfilename, size); + LOGI("extract_files: Copied %s to %s: %lld bytes", filename, newfilename, (long long) size); } } else { size = extract_gzipped(filename, apkentry, size, f); - LOGI("extract_files: Decompressed %s to %s: %d bytes", filename, newfilename, size); + LOGI("extract_files: Decompressed %s to %s: %lld bytes", filename, newfilename, (long long) size); } fclose(f); |