# HG changeset patch # User Kevin Cernekee # Date 1423696970 28800 # Node ID c9a62cb4124d6ac07eaed70619f49c4907db12f6 # Parent 4578584def8a59c2e4f1aebabb423489963cdb54 Assume unbroken ungetc() on Android * m4/ungetc.m4: Add Android case to host OS check. The ungetc() test case passed when running on an Android host, and the code hasn't really changed since 2009. diff --git a/ChangeLog b/ChangeLog --- a/ChangeLog +++ b/ChangeLog @@ -27,6 +27,11 @@ Therefore don't enable by default. * m4/ls-mntd-fs.m4: Use --with-libmount to enable at build time. + Assume unbroken ungetc() on Android + * m4/ungetc.m4: Add Android case to host OS check. The ungetc() + test case passed when running on an Android host, and the code + hasn't really changed since 2009. + 2015-02-08 Daiki Ueno uniname/unimame-tests: don't link with -lunistring diff --git a/m4/ungetc.m4 b/m4/ungetc.m4 --- a/m4/ungetc.m4 +++ b/m4/ungetc.m4 @@ -29,8 +29,9 @@ fclose (f); remove ("conftest.tmp");])], [gl_cv_func_ungetc_works=yes], [gl_cv_func_ungetc_works=no], [case "$host_os" in - # Guess yes on glibc systems. - *-gnu*) gl_cv_func_ungetc_works="guessing yes" ;; + # Guess yes on glibc and bionic systems. + *-gnu*|*-android*) + gl_cv_func_ungetc_works="guessing yes" ;; # If we don't know, assume the worst. *) gl_cv_func_ungetc_works="guessing no" ;; esac