From: Collin Funk Date: Sun, 21 Sep 2025 05:45:29 +0000 (-0700) Subject: sig2str: Port to Android API level 36. X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cfef893be27e89099d69a6781f725a5cc6ccc48a;p=thirdparty%2Fgnulib.git sig2str: Port to Android API level 36. * m4/sig2str.m4 (gl_FUNC_SIG2STR): Use gl_CHECK_FUNCS_ANDROID to check for sig2str and str2sig instead of AC_CHECK_FUNCS. * doc/posix-functions/sig2str.texi: Document that the function is missing on Android API 35 and lower. * doc/posix-functions/str2sig.texi: Likewise. --- diff --git a/ChangeLog b/ChangeLog index 54414de58c..10b2ec4a6c 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,12 @@ 2025-09-20 Collin Funk + sig2str: Port to Android API level 36. + * m4/sig2str.m4 (gl_FUNC_SIG2STR): Use gl_CHECK_FUNCS_ANDROID to check + for sig2str and str2sig instead of AC_CHECK_FUNCS. + * doc/posix-functions/sig2str.texi: Document that the function is + missing on Android API 35 and lower. + * doc/posix-functions/str2sig.texi: Likewise. + qsort_r: Port to Android API level 36. * m4/qsort_r.m4 (gl_FUNC_QSORT_R): Use gl_CHECK_FUNCS_ANDROID to check for qsort_r instead of AC_CHECK_FUNCS_ONCE. diff --git a/doc/posix-functions/sig2str.texi b/doc/posix-functions/sig2str.texi index 4f6b7d1c50..dba8a7abec 100644 --- a/doc/posix-functions/sig2str.texi +++ b/doc/posix-functions/sig2str.texi @@ -11,7 +11,7 @@ Portability problems fixed by Gnulib: @itemize @item This function is missing on many platforms: -glibc 2.42, macOS 14, FreeBSD 14.0, NetBSD 10.0, OpenBSD 7.5, Minix 3.3.0, AIX 7.3.1, HP-UX 11.31, Cygwin 3.2.x, mingw, MSVC 14, Android 9.0. +glibc 2.42, macOS 14, FreeBSD 14.0, NetBSD 10.0, OpenBSD 7.5, Minix 3.3.0, AIX 7.3.1, HP-UX 11.31, Cygwin 3.2.x, mingw, MSVC 14, Android API level 35. @end itemize Portability problems not fixed by Gnulib: diff --git a/doc/posix-functions/str2sig.texi b/doc/posix-functions/str2sig.texi index ac1a04e9d3..5fa5d70fce 100644 --- a/doc/posix-functions/str2sig.texi +++ b/doc/posix-functions/str2sig.texi @@ -11,7 +11,7 @@ Portability problems fixed by Gnulib: @itemize @item This function is missing on many platforms: -glibc 2.42, macOS 14, FreeBSD 14.0, NetBSD 10.0, OpenBSD 7.5, Minix 3.3.0, AIX 7.3.1, HP-UX 11.31, Cygwin 3.2.x, mingw, MSVC 14, Android 9.0. +glibc 2.42, macOS 14, FreeBSD 14.0, NetBSD 10.0, OpenBSD 7.5, Minix 3.3.0, AIX 7.3.1, HP-UX 11.31, Cygwin 3.2.x, mingw, MSVC 14, Android API level 35. @end itemize Portability problems not fixed by Gnulib: diff --git a/m4/sig2str.m4 b/m4/sig2str.m4 index d49e363f3a..4f713724bb 100644 --- a/m4/sig2str.m4 +++ b/m4/sig2str.m4 @@ -1,5 +1,5 @@ # sig2str.m4 -# serial 8 +# serial 9 dnl Copyright (C) 2002, 2005-2006, 2009-2025 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, @@ -9,7 +9,8 @@ dnl This file is offered as-is, without any warranty. AC_DEFUN([gl_FUNC_SIG2STR], [ AC_REQUIRE([gl_SIGNAL_H_DEFAULTS]) - AC_CHECK_FUNCS([sig2str str2sig]) + gl_CHECK_FUNCS_ANDROID([sig2str], [[#include ]]) + gl_CHECK_FUNCS_ANDROID([str2sig], [[#include ]]) if test $ac_cv_func_sig2str = no; then HAVE_SIG2STR=0 fi