Android environments

2022-12-26 Thread Bruno Haible
Po Lu wrote: > The compilation is done on the host machine that's building Emacs (to > produce emacs.so), which is then copied to the lib directory in the APK > package. I see. There are two ways to build C programs for Android: (A) The way it is designed by Google: With the Android NDK,

Re: getrandom not replaced

2022-12-26 Thread Po Lu
Bruno Haible writes: > Why cross-compile? Both the Terminal-IDE and the Termux app support > native compilation. My port is "Emacs as an Android application package." The SDK build tools and Java compiler are only available on the host. > Again, what is the Android API level that you are using

Re: Android problem

2022-12-26 Thread Po Lu
Bruno Haible writes: > Po Lu wrote: >> Someone asked me to port Emacs to Android. > > Please be specific: Which Android API level are you using at compile-time? > And which Android version at run-time? > >> In doing so noticed that the >> fpending module no longer works there > > Please be specif

[PATCH] stdbool-c99: fix typo

2022-12-26 Thread Paul Eggert
Reported against Autoconf by Todd C. Miller in: https://lists.gnu.org/r/autoconf/2022-12/msg1.html * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Sync from Autoconf master. --- ChangeLog | 7 +++ m4/stdbool.m4 | 12 ++-- 2 files changed, 13 insertions(+), 6 deletions(-) diff --gi

Re: [PATCH] asctime, ctime: deprecate

2022-12-26 Thread Bruno Haible
Paul Eggert wrote: > * modules/ctime: Now obsolete. This part is not right. The notion of an "obsolete" Gnulib module means [1] that it is omitted when used as a dependency. But since we document that this module really fixes a portability issue Portability problems fixed by Gnulib: @itemize

Re: [PATCH] memset_explicit: port to older MS-Windows

2022-12-26 Thread Paul Eggert
On 12/26/22 08:50, Bruno Haible wrote: For compilers other than GCC and clang, we are betting on a trick with 'volatile'. I'm not sure it won't break in the future. But at least for now, with MSVC, the unit tests still pass. Thanks for doing the unit tests. Yes, the hope is that this good is go

Re: [PATCH] memset_explicit: port to older MS-Windows

2022-12-26 Thread Bruno Haible
Paul Eggert wrote: > * lib/memset_explicit.c (memset_explicit): > Remove special case for C==0 and MS-Windows. The code isn’t > needed for correctness > ... > /* Set S's bytes to C, where S has LEN bytes. The compiler will not > optimize effects away, even if S is dead after the call. */ >

Re: Android problem

2022-12-26 Thread Bruno Haible
> the fpending module no longer works there You find a testdir for 'fpending' and related modules, with unit tests included, in https://haible.de/bruno/gnu/testdir-stdioext.tar.gz . Run it through $ ./configure && make && make check Bruno