]> git.eshelyaron.com Git - emacs.git/commit
Fix build and running on Android 2.2
authorPo Lu <luangruo@yahoo.com>
Fri, 17 Feb 2023 08:27:00 +0000 (16:27 +0800)
committerPo Lu <luangruo@yahoo.com>
Fri, 17 Feb 2023 08:27:00 +0000 (16:27 +0800)
commit88afd96e36e62017c9c1f2229e2748b6dfbdb39a
tree218845ef248e9ba2131abd22404e3de9dfbf3cbd
parent759e6a24ab9690541acc6ece1adebaf524d6e5ae
Fix build and running on Android 2.2

* INSTALL.android: Document that Android 2.2 is now supported,
with caveats.
* configure.ac (ANDROID_MIN_SDK, ANDROID_SDK_18_OR_EARLIER)
(SYSTEM_TYPE, ANDROID_STUBIFY, SIZEOF_LONG): Correctly detect
things missing on Android 2.2.
* java/Makefile.in (ANDROID_JAR, JARSIGNER_FLAGS):
* java/debug.sh (jdb, gdbserver, line):
* java/org/gnu/emacs/EmacsApplication.java (findDumpFile):
* java/org/gnu/emacs/EmacsService.java (onCreate):
* java/org/gnu/emacs/EmacsThread.java (EmacsThread, run): Run
parameter initialization on main thread.
* src/android-asset.h (struct android_asset_manager)
(struct android_asset, AAssetManager_fromJava, AAssetManager_open)
(AAsset_close, android_asset_create_stream)
(android_asset_read_internal, AAsset_openFileDescriptor)
(AAsset_getLength, AAsset_getBuffer, AAsset_read): New file.
* src/android.c (android_user_full_name, android_hack_asset_fd)
(android_check_compressed_file): Implement for Android 2.2.
* src/process.c (Fprocess_send_eof): Don't call tcdrain if
unavailable.
* src/sfntfont-android.c (system_font_directories): Fix compiler
warning.
* src/sfntfont.c (sfntfont_read_cmap): Correctly test rc of
emacs_open.
* src/textconv.c (handle_pending_conversion_events_1): Mark
buffer UNINIT.
13 files changed:
INSTALL.android
configure.ac
java/Makefile.in
java/debug.sh
java/org/gnu/emacs/EmacsApplication.java
java/org/gnu/emacs/EmacsService.java
java/org/gnu/emacs/EmacsThread.java
src/android-asset.h [new file with mode: 0644]
src/android.c
src/process.c
src/sfntfont-android.c
src/sfntfont.c
src/textconv.c