]> Savannah Git Hosting - gnulib.git/commit
strerror_r-posix: port even better to Android
authorPaul Eggert <eggert@cs.ucla.edu>
Thu, 9 Sep 2021 02:18:37 +0000 (19:18 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Thu, 9 Sep 2021 02:25:49 +0000 (19:25 -0700)
commitd9559536909c5c8f819321cabc05f12652c7f9fd
treea9c298956c3a81cffcec848657f7f7ab0b74ff32
parentd99c9622d55cd37084af00843e1feffc0a71fc62
strerror_r-posix: port even better to Android

* lib/strerror_r.c: Use STRERROR_R_CHAR_P to decide whether the
system strerror_r returns char *, and HAVE_DECL_STRERROR_R to
decide whether it either does that or returns an integer.  In the
former case, use the system strerror_r even on platforms like
Android API level 23 that don’t have __xpg_strerror_r; also
check for strerror_r failure just in case.
* m4/error.m4 (gl_PREREQ_ERROR):
* m4/strerror_r.m4 (gl_PREREQ_STRERROR_R):
Use system extensions on Android, to avoid mishandling strerror_r
on API level 23 and later.
* modules/error, modules/strerror_r-posix (configure.ac):
Surround gl_PREREQ_ERROR with AS_IF instead of plain if, so that
AC_REQUIREs are propagated out.
ChangeLog
lib/strerror_r.c
m4/error.m4
m4/strerror_r.m4
modules/error
modules/strerror_r-posix